All of lore.kernel.org
 help / color / mirror / Atom feed
* gdb problems
@ 2004-01-27 16:48 Christopher R. Johnson
  2004-01-27 17:13 ` Christopher R. Johnson
  2004-01-27 17:13 ` Wolfgang Denk
  0 siblings, 2 replies; 15+ messages in thread
From: Christopher R. Johnson @ 2004-01-27 16:48 UTC (permalink / raw)
  To: linuxppc-dev


Maybe not the right list for this, if you have a suggestion for
somewhere better let me know...

My new tool chain build is working well, except that debugging with
gdb/gdbserver is somewhat broken.  I figured out that I needed thread_db
and have that built in now and delivered to the target platform.

Problem #1: When I start host side gdb, I get the message:
warning: unable to find dynamic linker breakpoint function
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code

I don't need to debug initializers, so I set a breakpoint at main and
continue.  Two error messages appear:
Error while mapping shared library sections:
/lib/ld.so.1: No such file or directory
Error while mapping shared library symbols:
/lib/ld.so.1: No such file or directory

The program starts and breakpoint don't work.

Problem #2:  (Maybe related?) on the target side gdbserver, after
starting things with "c" on the host side, this message appears:
gdb: error initializing thread_db library.
gdb: error initializing thread_db library.

Yes, twice.

Why is the host side looking in /lib for target libraries?  Can I
control that?  How?

Why is gdbserver on the target having trouble?  I see I have correctly
delivered the thread_db library in /lib on the target, so what gives?

Any help or guidance would be greatly appreciated.  I build my toolchain
with crosstools.

--
Christopher R. Johnson


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 15+ messages in thread
* GDB problems
@ 2013-04-08 11:03 Gary Thomas
  2013-04-08 12:30 ` Gary Thomas
  0 siblings, 1 reply; 15+ messages in thread
From: Gary Thomas @ 2013-04-08 11:03 UTC (permalink / raw)
  To: Yocto Project

I'm trying to run GDB to debug code on my target.  Whenever I start
it up, I get this warning:
   warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
and indeed, no thread debug commands will work.

I've found that the library /usr/lib/libthread_db.so is not being
installed in the rootfs.  However, just adding this library isn't
enough.  The file /lib/libpthread-2.60.so has been stripped on the
target and this also breaks GDB.  Installing a non-stripped version
of this library lets GDB do thread debugging.

Both of these libraries come from the eglibc package.  How can I
adjust that recipe to:
   * Install libthread_db.so
   * Avoid stripping libpthread-2.16.so

It looks like the libthread_db.so file(s) should be installed via
the 'eglibc-thread-db' package, but I can't find this package anywhere
on my system.

Any pointers?

Thanks

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 15+ messages in thread
[parent not found: <000701c0d99b$357cbf20$3196143e@jocke>]
* gdb problems
@ 2001-05-10 17:19 Joakim Tjernlund
  2001-05-10 17:40 ` Wolfgang Denk
  2001-05-10 18:22 ` Scott Anderson
  0 siblings, 2 replies; 15+ messages in thread
From: Joakim Tjernlund @ 2001-05-10 17:19 UTC (permalink / raw)
  To: linuxppc-embedded


Hi

I am trying to debug ppclinux 2.4 and ppcboot on RPX CLLF board
connected to an Abatron emulator.

When I print variables in gdb I get an <error type> message
instead of the variable value. Breakpoints and stack trace etc. works
fine. I have enabled -g switch to gcc.

Any ideas?

 Jocke

I am using Montavistas CDK 1.2 on RH7.1

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2013-04-08 17:34 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-27 16:48 gdb problems Christopher R. Johnson
2004-01-27 17:13 ` Christopher R. Johnson
2004-01-27 17:13 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2013-04-08 11:03 GDB problems Gary Thomas
2013-04-08 12:30 ` Gary Thomas
2013-04-08 12:47   ` Paul Eggleton
2013-04-08 13:01     ` Gary Thomas
2013-04-08 17:34     ` Khem Raj
     [not found] <000701c0d99b$357cbf20$3196143e@jocke>
2001-05-10 22:09 ` gdb problems Wolfgang Denk
2001-05-11 10:25   ` Joakim Tjernlund
2001-05-10 17:19 Joakim Tjernlund
2001-05-10 17:40 ` Wolfgang Denk
2001-05-10 18:22 ` Scott Anderson
2001-05-11 10:23   ` Joakim Tjernlund
2001-05-11 15:38     ` Joakim Tjernlund

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.