This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

remote debugging and source files


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?

regards,
h

--
hinko <dot> kocevar <at> iskramedical <dot> si
Hinko Kocevar, developer
Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU

"AÃ rÃn" | [Analects XII:22]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]