remote debugging and source files

Hinko Kocevar
2004-08-24T14:05:00Z

Hi,

I'm remote debugging a programm using gdbserver on target side and gdb
on host side. My target CPU is ARM and host is i686. Debugging same
program just on host (no cross compilaton) allows me to see the source
of each file when doing 'step'. That does not work when same program is
cross-compiled, copied to target and started there with:
gdbserver host:2345 slider

On host I run the debugger- 'ddd --debugger arm-linu-gdb', load the
program and specify the target:
target remote ipaq:2345

I can see slider.c source displayed, but any other functions, defined
outside, are not stepped into. Maybe it is worth mentioning that this
functions are in a shared library.

I tried adding directory of the actual source with 'dir /path/to/source'
but it didn't help.

Also, I pointed 'set solib-search-path' to libs containing those functions.

What am I missing here?