This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
GDB and Shared Libraries
- From: "Drummonds, Scott B" <scott dot b dot drummonds at intel dot com>
- To: <gdb at sources dot redhat dot com>
- Date: Tue, 6 Jan 2004 14:06:57 -0800
- Subject: GDB and Shared Libraries
Hi, everyone,
I'm noticing a discrepancy between the way that GDB handles shared
libraries and my Linux system does during execution. Specifically, my
program works on the command line (well, except for the actual run-time
but that I'm trying to find) but aborts in GDB for lack of shared
libraries. Specifically:
<quote>
(gdb) run <my_args>
Starting program: <my_binary> <my_args>
<my_binary>: error while loading shared libraries: libtcl8.0.so: cannot
open shared object file: No such file or directory
Program exited with code 0177.
</quote>
Can anyone tell me why this is happening? This is an old version of GDB
(5.2-2) but I can't imagine that the problem here is anything other than
my incorrect or incomplete understanding of GDB.
Thanks,
Scott