[vbox-dev] GDB stub for VirtualBox debugger

Ivan Shcherbakov ivan at shcherbakov.info
Tue Sep 4 19:04:11 GMT 2012


Hi All,

I  have  developed  an  open-source  GDB  stub  to use with VirtualBox
debugger.  It  connects  to  the VirtualBox debugger over TCP and then
accepts  incoming  connections  from  GDB.

You can download it from here: http://sysprogs.com/VBoxGDB/

A step-by-step tutorial on debugging Linux kernel with it is here:
  http://sysprogs.com/VBoxGDB/tutorial/

The  stub currently uses a relatively dirty hack to be able to set the
target  registers.  In  August  I  have submited a patch that adds the
missing  implementation  for  register setting to VirtualBox. Is there
any  chance  that the patch can be included in one of the next release
candidates  of VirtualBox 4.2.0 so that gdb debugging can work without
the dirty hack?


-- 
Best Regards,
 Ivan                          mailto:ivan at shcherbakov.info





More information about the vbox-dev mailing list