Kernel Debugging: Difference between revisions

Jump to navigation Jump to search
m
[unchecked revision][unchecked revision]
Line 155:
=== Use VirtualBox debugger ===
 
Unfortunately VirtualboxVirtualBox developers are morrons, and they have removed the "--start-dbg" command line option, so there's no way to set up breakpoints before your vmVM starts execution.
But you can do a similar trick as with GDB, which is to place an endless loop pseudo-breakpoint in your code somewhere:
<source lang="C">
asm volatile ("1: jmp 1b");
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu