qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] use qemu debug arm
@ 2009-04-19  3:55 zhongsan yan
  2009-04-19  4:42 ` Prasad
  0 siblings, 1 reply; 4+ messages in thread
From: zhongsan yan @ 2009-04-19  3:55 UTC (permalink / raw)
  To: qemu-devel

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

hi everyone

i want to use qemu to debug my arm code with gdb, and it is
non-linux-kernel, can i do it ?

BR

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

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

* Re: [Qemu-devel] use qemu debug arm
  2009-04-19  3:55 [Qemu-devel] use qemu debug arm zhongsan yan
@ 2009-04-19  4:42 ` Prasad
  2009-04-19  5:16   ` zhongsan yan
  0 siblings, 1 reply; 4+ messages in thread
From: Prasad @ 2009-04-19  4:42 UTC (permalink / raw)
  To: qemu-devel

Yes, you can .

All you need is a tool arm-linux tool chain with arm debugger, and ELF
for your binary.

Regads,
Prasad

P R A S A D  S H E T T Y
~~~~~~~~~~~~~~~~~~~~~~~~
http://shettyprasad.blogspot.com
~~~~~~~~~~~~~~~~~~~~~~~~


On Sun, Apr 19, 2009 at 9:25 AM, zhongsan yan <yanzhongsan@gmail.com> wrote:
>
> hi everyone
>
> i want to use qemu to debug my arm code with gdb, and it is non-linux-kernel, can i do it ?
>
> BR

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

* Re: [Qemu-devel] use qemu debug arm
  2009-04-19  4:42 ` Prasad
@ 2009-04-19  5:16   ` zhongsan yan
  2009-04-19  9:11     ` Prasad
  0 siblings, 1 reply; 4+ messages in thread
From: zhongsan yan @ 2009-04-19  5:16 UTC (permalink / raw)
  To: qemu-devel

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

thanks,Prasad

i have the Sourcery G++ Lite for arm eabi tool chain, it include gcc, as,
ld, ar, gdb tools for arm,

and now, i write my code, what next i should do to debug, is any documents
about it ? where can i get that.

BR

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

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

* Re: [Qemu-devel] use qemu debug arm
  2009-04-19  5:16   ` zhongsan yan
@ 2009-04-19  9:11     ` Prasad
  0 siblings, 0 replies; 4+ messages in thread
From: Prasad @ 2009-04-19  9:11 UTC (permalink / raw)
  To: qemu-devel

you run

in QEMU run your target with -s -S option
then run arm gdb with ELF file as input.

$ arm-none-linux-gnueabi-gdb Image.elf

connect your target using

$ target remote localhost:1234

now you can debug your arm code.Care should be take to place source
code in right path, so that source level debuggin is possible.

Regard,
Prasad


P R A S A D  S H E T T Y
~~~~~~~~~~~~~~~~~~~~~~~~
http://shettyprasad.blogspot.com
~~~~~~~~~~~~~~~~~~~~~~~~



On Sun, Apr 19, 2009 at 10:46 AM, zhongsan yan <yanzhongsan@gmail.com> wrote:
> thanks,Prasad
>
> i have the Sourcery G++ Lite for arm eabi tool chain, it include gcc, as,
> ld, ar, gdb tools for arm,
>
> and now, i write my code, what next i should do to debug, is any documents
> about it ? where can i get that.
>
> BR

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

end of thread, other threads:[~2009-04-19  9:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-19  3:55 [Qemu-devel] use qemu debug arm zhongsan yan
2009-04-19  4:42 ` Prasad
2009-04-19  5:16   ` zhongsan yan
2009-04-19  9:11     ` Prasad

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).