How to debug QEMU with GDB??
Hi,
I want to debug QEMU, but unfortunately after I set breakpoint in someplace of QEMU, then continue to run, GDB give me the message:
"Continuing.
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0x2dad0: IN/OUT ERROR."
So I have to ask some question here?
1) How to find bug in QEMU if GDB doesn't work with QEMU?
2) What did you do when you must test your code of QEMU?
Thank you!
Hi...
Probably, it doesn't help you much, but have you check Qemu user forum (http://qemu-forum.ipi.fi/)? There, in pending patch section, you can find a patch that makes Qemu more gdb-friendly.
Another point is, are you sure you are putting breakpoint in .text segment? Also, it is possible that some memory address range is write protected (via mprotect) so you can't write there.
Jasson Wessel is the man I know who works closely with qemu-gdb related stuffs... try to ask him.
regards,
Mulyadi