For normal gdb, one would just type:
- gdb prog prog.core
There is a simple trick, however, that gets around these problems. It can be used both when debugging cross architecture and when debugging different a core from one release on a newer/older release of FreeBSD. This example, I use 'gdb-arm' which is the debugger I use for cross debugging.
- # gdb-arm
- (gdb) set solib-absolute-prefix /path/to/built/image
- (gdb) file prog
- (gdb) core-file prog.core
- (gdb)
This is just the barest of sketches for what to do. There are many other ways to make debugging easier in a cross debugging environment, and gdb can do more than just look at core files. But those topics will have to wait for another day. The curious are invited to read through the gdb info files. They are very complete, and well indexed by google or other search engines.
No comments:
Post a Comment