From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6004 invoked by alias); 12 Dec 2003 16:27:20 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 5996 invoked from network); 12 Dec 2003 16:27:18 -0000 Received: from unknown (HELO ata.cs.hacettepe.edu.tr) (193.140.236.6) by sources.redhat.com with SMTP; 12 Dec 2003 16:27:18 -0000 Received: from ata.cs.hacettepe.edu.tr (ata.cs.hacettepe.edu.tr [127.0.0.1]) by ata.cs.hacettepe.edu.tr (8.12.8/8.11.6) with ESMTP id hBCGRF6P014334 for ; Fri, 12 Dec 2003 18:27:15 +0200 Received: (from ibr@localhost) by ata.cs.hacettepe.edu.tr (8.12.8/8.12.8/Submit) id hBCGRDiD014333 for gdb@sources.redhat.com; Fri, 12 Dec 2003 18:27:13 +0200 Date: Fri, 12 Dec 2003 16:27:00 -0000 From: Baurjan Ismagulov To: gdb@sources.redhat.com Subject: specifying the library path Message-ID: <20031212162711.GP9734@ata.cs.hacettepe.edu.tr> Mail-Followup-To: gdb@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i X-SW-Source: 2003-12/txt/msg00182.txt.bz2 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.