Do you have a question? Post it now! No Registration Necessary
- Posted on
- debug tools for arm-linux application
January 11, 2006, 8:01 am
rate this thread
- Gabriele Brugnoni
January 12, 2006, 7:21 am
Re: debug tools for arm-linux application
A good tool for ARM is insight and gdbserver.
I've build the 6.1 version in the past:
First I've "untarred" the sources into a directory, then created a directory
insight-6.1-arm and gdbserver-arm-6.1.
The directory with sources look like this:
./insight-6.1 (the source tree)
This is the configuration commands I've used:
Into the insight-arm-linux-6.1:
# ../insight-6.1/configure --host=i686-pc-linux --target=arm-linux
# make install
Then, into gdbserver-arm-6.1 configure the gdbserver program:
# ../insight-6.1/gdb/gdbserver/configure --target=arm-linux
After build, run the insight program.
In the "File", "Target settings" menu, select this options:
Hostname: <the ip address of your target ARM device>
Port: 2345 (or any free port you want)
Expand the "More options", then:
[x] Attach to Target
[ ] Download program
< > Run program
<X> Continue from last stop
And for the global options, ensure that the "Set breakpoint at main" is
Search in the gdbserver-arm-6.1 directory the binary "gdbserver" and put it
into your target.
Then, after having builded your application with the -ggdb debug option, run
it in the target arm device in this way:
# gbdserver <your PC TCP/IP address>:<2345 or your port> <your program>
In the insight program, select the "run" menu, then "Run", choose your ARM
program binary and... play with it!
I think that the same procedure may be used to build the gdb source. Gdb may
be used with another front-end, if you don't like insight.
I hope this may help you.
- » Sharing memory between kernel space and user space
- — Previous thread in » Embedded Linux
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux