Skip to contentSkip to conversation

debug qemu-arm

Qemu-devel [email protected] 2 participants 2 messages Jun 28, 2005

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 9 lines

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!

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