Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
To: gdb@sources.redhat.com
Subject: specifying the library path
Date: Fri, 12 Dec 2003 16:27:00 -0000	[thread overview]
Message-ID: <20031212162711.GP9734@ata.cs.hacettepe.edu.tr> (raw)

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.


             reply	other threads:[~2003-12-12 16:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-12 16:27 Baurjan Ismagulov [this message]
2003-12-12 16:32 ` Baurjan Ismagulov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031212162711.GP9734@ata.cs.hacettepe.edu.tr \
    --to=ibr@ata.cs.hun.edu.tr \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox