Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* specifying the library path
@ 2003-12-12 16:27 Baurjan Ismagulov
  2003-12-12 16:32 ` Baurjan Ismagulov
  0 siblings, 1 reply; 2+ messages in thread
From: Baurjan Ismagulov @ 2003-12-12 16:27 UTC (permalink / raw)
  To: gdb

Hello,

how do I use a library from a different directory under gdb?

As I understand from the following page, gdb should use the inherited
LD_LIBRARY_PATH value:

http://lists.debian.org/debian-devel/2003/debian-devel-200301/msg01338.html


Here is what I am doing:

$ export LD_LIBRARY_PATH=/z
$ ldd /sbin/blogd
        libutil.so.1 => /lib64/libutil.so.1 (0x0000002a9566d000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x0000002a95770000)
        libc.so.6 => /z/libc.so.6 (0x0000002a9588c000)
        /lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000002a95556000)
$ /usr/ibr/src/gdb-6.0/gdb/gdb /sbin/blogd /core
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "x86_64-unknown-linux-gnu"...
Core was generated by `/sbin/blogd /dev/ttyS0'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib64/libutil.so.1...done.
Loaded symbols for /lib64/libutil.so.1
Reading symbols from /lib64/libpthread.so.0...done.
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/libc.so.6...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
#0  0x0000002a958f6df4 in fileno_unlocked () from /lib64/libc.so.6

For now, I'm replacing the library in /lib64, but this is somewhat
inconvenient for libc...

Thanks in advance,
Baurjan.


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

* Re: specifying the library path
  2003-12-12 16:27 specifying the library path Baurjan Ismagulov
@ 2003-12-12 16:32 ` Baurjan Ismagulov
  0 siblings, 0 replies; 2+ messages in thread
From: Baurjan Ismagulov @ 2003-12-12 16:32 UTC (permalink / raw)
  To: gdb

On Fri, Dec 12, 2003 at 06:27:13PM +0200, Baurjan Ismagulov wrote:
> Loaded symbols for /lib64/libc.so.6

Ah, the program that generated the core didn't use the library under /z
for some reason... Never mind.

With kind regards,
Baurjan.


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

end of thread, other threads:[~2003-12-12 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-12 16:27 specifying the library path Baurjan Ismagulov
2003-12-12 16:32 ` Baurjan Ismagulov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox