From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31006 invoked by alias); 5 May 2007 02:57:11 -0000 Received: (qmail 30997 invoked by uid 22791); 5 May 2007 02:57:11 -0000 X-Spam-Check-By: sourceware.org Received: from smtp108.plus.mail.re2.yahoo.com (HELO smtp108.plus.mail.re2.yahoo.com) (206.190.53.33) by sourceware.org (qpsmtpd/0.31) with SMTP; Sat, 05 May 2007 02:57:06 +0000 Received: (qmail 27298 invoked from network); 5 May 2007 02:57:04 -0000 Received: from unknown (HELO ?192.168.1.2?) (jjaimon@59.92.133.102 with plain) by smtp108.plus.mail.re2.yahoo.com with SMTP; 5 May 2007 02:57:04 -0000 X-YMail-OSG: wV_BY8cVM1n.V.RvIld.MTrxqFFQVHWKO6ovqrq7HoopjPtRt86VcRhLBc57mEymYy_pHlNiY12L2HPpmmhfzRQh72NWbRNpvxfsXiUFovHR3H2A_GLW4G37S73zOJIXs7QVOhH9o2vHDw-- Message-ID: <463BF26F.5000305@yahoo.com> Date: Sat, 05 May 2007 02:57:00 -0000 From: Jaimon Jose Reply-To: jjaimon@yahoo.com User-Agent: Thunderbird 1.5.0.10 (X11/20070221) MIME-Version: 1.0 To: gdb@sourceware.org Subject: Setting breakpoints where duplicate symbols are present Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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/msg00015.txt.bz2 This may be a trivial question. I'm kind of stuck on this and didn't find a way to work around. I have a process where multiple libraries are loaded. Some of them have duplicate symbols ( private copies of the same symbol and the libraries are linked with -Bsymbolic for a reason ). I can't see the symbol from the library in context ( in dbx I could do this by qualifying the symbol by the library name. For eg. `libfoo.so.1`foo_bar ) when I try to set a breakpoint or inspect the symbol. It will always go to a symbol from a library which is already resolved where as the one that's getting executed is from the local library. Because of this, the breakpoints are never hit. 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 ) Appreciate your help --jaimon