debug qemu-arm
Hi:
I try to debug qemu-arm like the following:
cd /home/qemu/arm-user/
gdb qemu-arm
set args /home/qemu/tests/hello-arm
br main
run
It will report the following messages:
Starting program: /home/qemu/arm-user/qemu-arm /home/qemu/tests/hello-arm
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0x1c7da: Input/output error.
If I remove breakpoint at main and run it, it will be OK, Will you give me some help? Thanks!
James chen
Quoted 9 lines
It will report the following messages:
Starting program:
/home/qemu/arm-user/qemu-arm/home/qemu/tests/hello-armWarning:
Cannot insert breakpoint 1.
Error accessing memory address0x1c7da: Input/output error.If I remove breakpoint at main and run it, it will be OK, Will you give me some help? Thanks!
Compile qemu-arm statically (ie configuer with --static). The default is to build as a shared library, which seems to be buggy, and confuses gdb.
Paul