Skip to contentSkip to conversation

use qemu debug arm

Qemu-devel zhongsan yan 2 participants 4 messages Apr 19, 2009

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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
~~~~~~~~~~~~~~~~~~~~~~~~

Quoted 6 lines · zhongsan yan

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

#2 lore raw

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

#3 lore raw

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
~~~~~~~~~~~~~~~~~~~~~~~~

Quoted 9 lines · zhongsan yan

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