qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] debug qemu-arm
@ 2005-06-28  8:17 Chen.James
  2005-06-28 12:22 ` Paul Brook
  0 siblings, 1 reply; 2+ messages in thread
From: Chen.James @ 2005-06-28  8:17 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

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

 


[-- Attachment #2: Type: text/html, Size: 5237 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] debug qemu-arm
  2005-06-28  8:17 [Qemu-devel] debug qemu-arm Chen.James
@ 2005-06-28 12:22 ` Paul Brook
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Brook @ 2005-06-28 12:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: Chen.James

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-28 12:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-28  8:17 [Qemu-devel] debug qemu-arm Chen.James
2005-06-28 12:22 ` Paul Brook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).