All of lore.kernel.org
 help / color / mirror / Atom feed
* gdb/gdbserver vs. eclipse
@ 2015-09-04 21:39 Robert Berger
  2015-09-04 23:47 ` Rudolf J Streif
  0 siblings, 1 reply; 8+ messages in thread
From: Robert Berger @ 2015-09-04 21:39 UTC (permalink / raw)
  To: yocto

Hi,

I managed to step form HelloWorld into the C library and friends with a
.gdbinit file like this:

# don't use default libs from x86/Ubuntu:
set sysroot /opt/adt-target-sysroot/beagle-bone-black-ml
set solib-absolute-prefix /opt/adt-target-sysroot/beagle-bone-black-ml
set solib-search-path  /opt/adt-target-sysroot/beagle-bone-black-ml
# point to the libraries with debug info:
set debug-file-directory
/opt/adt-target-sysroot/beagle-bone-black-ml/usr/lib/debug
# point to the source code:
set substitute-path /usr/src/debug
/opt/adt-target-sysroot/beagle-bone-black-ml/usr/src/debug
set substitute-path /
/opt/adt-target-sysroot/beagle-bone-black-ml/usr/src/debug
# connect to target:
target remote 192.168.42.11:5555
# set some breakpoints:
b main
b 32

When I try to do the same thing with Eclipse luna and the Eclipse plugin
it can not find the sources.

I am able to debug a hello world program with Eclipse, but when I step
into the C library I only see assembly code.

What magic is Eclipse doing?

Shouldn't .gdbinit work as well with Eclipse?

Regards,

Robert..."Software development is like making a baby... You can't make a
baby in one month by impregnating nine women."

My public pgp key is available,at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-09-06 17:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-04 21:39 gdb/gdbserver vs. eclipse Robert Berger
2015-09-04 23:47 ` Rudolf J Streif
2015-09-05 15:26   ` Robert Berger
2015-09-05 16:17     ` Rudolf J Streif
2015-09-05 18:10       ` Robert Berger
2015-09-05 18:17         ` Rudolf J Streif
2015-09-05 18:12       ` Rudolf J Streif
2015-09-06 17:05         ` Robert Berger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.