[EMAIL PROTECTED] bounced. Hence this ...
Hi, I am using gdb 5.0 on a Solaris 2.6. I was trying to debug an executable compiled using gcc 2.95.2. A shared library is linked in to the executable. I have set LD_LIBRARY_PATH properly. I am able to run the program outside of gdb properly. But, when I attempt to run the program inside gdb, gdb is unable to load the library. I have shown a sample transcript below. Probably this could be a common problem with a simple solution. Please let me know -- I haven't subscribed to this list. Hence, please cc me. Thanks. sankar@divine: ~/pkgs/build/OB-4.0.3/ob/demo/chat $ ldd client libOB.so.4.0.3 => /users/sankar/pkgs/orbacus/lib/libOB.so.4.0.3 libsocket.so.1 => /usr/lib/libsocket.so.1 libnsl.so.1 => /usr/lib/libnsl.so.1 libm.so.1 => /usr/lib/libm.so.1 libc.so.1 => /usr/lib/libc.so.1 libdl.so.1 => /usr/lib/libdl.so.1 libmp.so.2 => /usr/lib/libmp.so.2 /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 sankar@divine: ~/pkgs/build/OB-4.0.3/ob/demo/chat $ gdb GNU gdb 5.0 Copyright 2000 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 "sparc-sun-solaris2.6". (gdb) file client Reading symbols from client...(no debugging symbols found)...done. (gdb) run Starting program: /users/sankar/pkgs/build/OB-4.0.3/ob/demo/chat/client ld.so.1: /users/sankar/pkgs/build/OB-4.0.3/ob/demo/chat/client: fatal: +libOB.so.4.0.3: open failed: No such file or directory Program terminated with signal SIGKILL, Killed. The program no longer exists. (gdb) quit Regards Sankar -- Sankaranarayanan K. V. | [EMAIL PROTECTED] Motorola India Electronics Ltd | http://www.mot.com/miel