remote debugging and source files

Hinko Kocevar hinko.kocevar@iskramedical.si
Tue Aug 24 14:05:00 GMT 2004


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]



More information about the Gdb mailing list