Re: SableVM on ARM Zaurus
Rene Wagner <[email protected]>
| Newsgroups | gmane.comp.java.vm.sablevm.general |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2005-01-12 at 17:58, David Bélanger wrote: > It is easy to find segfault location with gdb. If the gtk code has been > compiled with debbugging symbols (-g) which should be the case, > > gdb --args PROGRAM ARGUMENTS > > Then at the gdb prompt, type: > run > > Then when it segfaults (gdb will tell you): > bt Unfortunately it's usually not that simple on a target device with very limited space and on top of that in a cross compilation environment... The libraries involved (usually gtk+, pango, glib) compiled with debugging symbols (not stripped!) are large enough - no way to fit gdb on the target. What you probably want is a gdbserver on the target and a cross-gdb on the host. Make sure to use current gdb sources for that - earlier versions appear to be malfunctioning in this scenario (backtraces make no sense at all). Check http://www.delorie.com/gnu/docs/gdb/gdb_134.html for info on how to use gdbserver. On the host you'll need to tell gdb where to find the shared libraries for the target. HIH, Rene