gdb version: 6.3 compiler: gcc-2.95.4 Platform: Debian 3.1 r1 I am using gdb to debug a program with a core dump error. The program uses my own library.
However, when start running inside gdb, it always complains that the user library is not found. " sideshow.eecg>gdb cc1.out.final GNU gdb 6.3-debian Copyright 2004 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 "i386-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) run ../data/test/input/foo.c Starting program: /steffan/a/a0/czhao/spec2000_suif/benchspec/CINT2000/176.gcc/ckp/cc1.out.final ../data/test/input/foo.c /steffan/a/a0/czhao/spec2000_suif/benchspec/CINT2000/176.gcc/ckp/cc1.out.final: error while loading shared libraries: libckplib.so: cannot open shared object file: No such file or directory Program exited with code 0177. " I have put my lib into LD_LIBRARY_PATH, no use. I copied the library into the current working directory, or start gdb from the directory containing the user library, no use either. I am thus asking how to instrument GDB to load that user-defined libary. I've been through the GDB cmdline options, didnot find one working. Thank you Chuck -- View this message in context: http://www.nabble.com/gdb-to-load-user-library-t1255758.html#a3329468 Sent from the Gnu - gdb - General forum at Nabble.com. _______________________________________________ Gdb mailing list Gdb@gnu.org http://lists.gnu.org/mailman/listinfo/gdb