Atoosah
2008-07-08 00:42:36 UTC
Hi
Thank you for your help, but I think my question was misunderstood.
Debugging the kernel is not my goal. Instead, I want to debug qemu itself.
i.e. I want to be able to add watchpoints/breakpoints to qemu source code.
How do I compile Qemu to enable the symbol table?
My difficulty is that I need to be able to make install my_qemu (i.e. the
installed qemu version). Correct me if I'm wrong, but the -s -S options are
necessary if the goal is debugging the kernel. Is there a patch available,
such as the one provided in
http://www.h7.dion.ne.jp/~qemu-win/DebuggingTips-en.html/ (which seems to be
a rather old link)?
Thanks again.
CONFIG_FRAME_POINTER=y. Both will enable gdb to easily resolve symbol
names into addresses and tracking down function call chain in stack
frame.
regards,
Mulyadi.
Thank you for your help, but I think my question was misunderstood.
Debugging the kernel is not my goal. Instead, I want to debug qemu itself.
i.e. I want to be able to add watchpoints/breakpoints to qemu source code.
How do I compile Qemu to enable the symbol table?
My difficulty is that I need to be able to make install my_qemu (i.e. the
installed qemu version). Correct me if I'm wrong, but the -s -S options are
necessary if the goal is debugging the kernel. Is there a patch available,
such as the one provided in
http://www.h7.dion.ne.jp/~qemu-win/DebuggingTips-en.html/ (which seems to be
a rather old link)?
Thanks again.
$gdb vmlinux
(gdb) target remote localhost:1234
Remote debuggin using localhost:1234
0x0000fff0 in ?? ()
(gdb) break main
No symbol table is loaded. Use the "file" command.
(gdb) c
Continuing.
try to compile your kernel with CONFIG_DEBUG_INFO=y and(gdb) target remote localhost:1234
Remote debuggin using localhost:1234
0x0000fff0 in ?? ()
(gdb) break main
No symbol table is loaded. Use the "file" command.
(gdb) c
Continuing.
CONFIG_FRAME_POINTER=y. Both will enable gdb to easily resolve symbol
names into addresses and tracking down function call chain in stack
frame.
regards,
Mulyadi.