use qemu debug arm
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
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
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
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