From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27679 invoked by alias); 5 May 2007 13:37:20 -0000 Received: (qmail 27670 invoked by uid 22791); 5 May 2007 13:37:18 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate5.de.ibm.com (HELO mtagate5.de.ibm.com) (195.212.29.154) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 05 May 2007 13:37:13 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate5.de.ibm.com (8.13.8/8.13.8) with ESMTP id l45Db9eb409644 for ; Sat, 5 May 2007 13:37:09 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l45Db98o3539168 for ; Sat, 5 May 2007 15:37:09 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l45Db8kK008736 for ; Sat, 5 May 2007 15:37:09 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id l45Db8Jk008733; Sat, 5 May 2007 15:37:08 +0200 Message-Id: <200705051337.l45Db8Jk008733@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Sat, 5 May 2007 15:37:08 +0200 Subject: Re: Setting breakpoints where duplicate symbols are present To: drow@false.org (Daniel Jacobowitz) Date: Sat, 05 May 2007 13:37:00 -0000 From: "Ulrich Weigand" Cc: jjaimon@yahoo.com (Jaimon Jose), gdb@sourceware.org In-Reply-To: <20070505044408.GA32240@caradoc.them.org> from "Daniel Jacobowitz" at May 05, 2007 12:44:08 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-05/txt/msg00018.txt.bz2 Daniel Jacobowitz wrote: > On Sat, May 05, 2007 at 08:26:47AM +0530, Jaimon Jose wrote: > > My questions are: > > 1. How do I inspect all the symbols of the same name in the process > > space? ( I tried loading the symbol from each library > > load-symbol-file. It didn't help either. In case of ambiguity, dbx used > > to show all symbols qualified with the library name and let us choose > > the right one) > > 2. How do I qualify a symbol with the library name where it belongs to? > > ( for eg. `libfoo.so`foo_bar ) > > Basically, you can't. Yet. We know we need to fix this. B.t.w., Markus is currently working on a patch: http://sourceware.org/ml/gdb-patches/2007-05/msg00037.html that will at least have GDB follow the ld.so symbol lookup rule, so if you access a symbol name from within a frame belonging to a -Bsymbolic shared library, you'll get the symbol definition from within that library. Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com