Debugging Linux Kernel in VMWare with Windows host

后端 未结 3 638
夕颜
夕颜 2021-01-01 04:43

I\'m working on my first ever kernel module so I\'m a bit new at this...

My module is occasionally producing a panic and I cannot get to the bottom of it using print

3条回答
  •  一整个雨季
    2021-01-01 05:31

    I'm not sure if this will help you on Winblowz, but if you can move your VM to a linux box:

    Debugging Linux kernels with Workstation 6.0

    We just quietly added an exciting feature to Workstation 6.0. I believe it will make WS6 a great tool for Linux kernel development. You can now use gdb on your host to debug the Linux kernel running inside the VM. No kdb, no recompiling and no need for second machine. All you need is a single line in VM's configuration file.

    I think this probably works on other recent VMware products as well.

    Since it works on Mac OSX as well I suspect it would work on Winblowz also:

    Debugging linux kernel (inside vmware) from Mac OSX

    As this thread suggests, you might also remotely debug one linux VM from a second linux VM running on the same machine.

提交回复
热议问题