首页 > 系统相关 >Using debugStub to debug a guest linux kernel

Using debugStub to debug a guest linux kernel

时间:2022-11-11 17:22:08浏览次数:38  
标签:kernel guest vm gdb linux debug debugStub

Using debugStub to debug a guest linux kernel
I am running VMware Fusion Version 6.0.2 (1398658)

I have configured the following in my vmx

debugStub.listen.guest64 = "TRUE"
debugStub.listen.guest64.remote = "TRUE"
debugStub.hideBreakpoints=1

I had a problem with using the (xcode) provided gdb, which I resolved by using gdb on a second vm.

I now connect using the commands

(gdb) file /pathto/mykernel.symbols

(gdb) target remote osx-host:8864

This is all working fine.

Here's my question, I would like to be able to attach to more than one debug vm kernel session at a time. Is there a .vmx config that will allow me to specify which port to listen on? That way I can attach to 8864 for one vm and say 8865 on another.

标签:kernel,guest,vm,gdb,linux,debug,debugStub
From: https://www.cnblogs.com/kuangke/p/16881142.html

相关文章

  • 将windows目录共享,并linux访问
    设置windows下的共享目录:在windows下,打开网络和共享中心,点击更改高级共享设置选择公用,在密码保护的共享选项中点击关闭密码保护共享选择需要共享的文件夹或磁......
  • 电影推荐系统项目实战:环境配置与安装:-----Linux环境下 ElasticSearch(单节点)环境配置
    1通过WGET下载压缩包:wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.2.tar.gz  2.修改Linux配置参数:在文件末尾添加:sudo......
  • 步入Linux的现代方法
    目录0:Linux的初步认识0.0系统的认识0.1Linux操作系统认识,以及开源的提出:Linux的千奇百怪的版本0.2开源的含义0.3Linux的用途,各类发行版本详见:​​0:Linux的初步认识-......
  • Debugging the Ubuntu kernel with GDB and QEMU
    参考:https://mhcerri.github.io/posts/debugging-the-ubuntu-kernel-with-gdb-and-qemu/ThistutorialfocusesonthepracticalaspectsofpreparinganUbuntulibvi......
  • LINUX CENTOS7 部署步骤 Ftp
    0.linux中FTP服务叫做vsftpd1.查看ftp是否安装rpm-qa|grepftp2.查找vsftpyumlist|grepvsftp3.安装vsftpdyum-yinstallvsftpd4.验证是否安装......
  • Linux五种I/O模型
    I/O阶段典型的一次I/O分为两个阶段:数据就绪和数据读写数据就绪:根据系统I/O操作的就绪状态阻塞非阻塞区别在于:进程发起系统调用后,是会被挂起直到收到数据后再返回,......
  • linux shell字符串截取的详细总结(实用!)
    摘自:https://www.jb51.net/article/257063.htm 更新时间:2022年07月27日15:55:23 作者:悟空悟道  在开发的时候经常会自行写一些小的脚本,其中就用到截取字符串的......
  • linux 以太网命名规则
          参考:https://blog.csdn.net/maomao5945/article/details/79354204https://www.cnblogs.com/bfhyqy/p/13512241.htmlhttps://access.re......
  • Linux 定时任务crontab监控重启java服务脚本
    linux服务器下,利用Linux定时器和简单监控脚本,监控自动重启java服务。注意:脚本最好在Linux系统中用touch建立.sh文件,并用shmod+x+‘脚本文件名’,在window下编辑有可能会......
  • 【网络IO模型(二)】Linux IO 模型
    作为软件开发者特别是server开发,平时要面对大量的跨进程交互场景,各种跨进程调用。虽然现在的开发语言为我们提供了很好的封装,不用过度关心底层网络io的细节,但是作为开发者,还......