From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10880 invoked by alias); 23 Jan 2011 12:07:55 -0000 Received: (qmail 10868 invoked by uid 22791); 23 Jan 2011 12:07:54 -0000 X-SWARE-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,TW_DB,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.checkpoint.com (HELO michael.checkpoint.com) (194.29.34.68) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 23 Jan 2011 12:07:40 +0000 X-CheckPoint: {4D3C1A06-0-1B221DC2-FFFF} Received: from il-ex01.ad.checkpoint.com (il-ex01.checkpoint.com [194.29.34.26]) by michael.checkpoint.com (8.13.8/8.13.8) with ESMTP id p0NC7MkM005096; Sun, 23 Jan 2011 14:07:23 +0200 Received: from il-ex03.ad.checkpoint.com (194.29.34.71) by il-ex01.ad.checkpoint.com (194.29.34.26) with Microsoft SMTP Server (TLS) id 8.2.255.0; Sun, 23 Jan 2011 14:07:22 +0200 Received: from il-ex01.ad.checkpoint.com ([126.0.0.2]) by il-ex03.ad.checkpoint.com ([194.29.34.71]) with mapi; Sun, 23 Jan 2011 14:07:21 +0200 From: Avi Gozlan To: "'Tom Tromey'" CC: "'gdb@sourceware.org'" , Avi Gozlan , Matan Ben Gur Date: Sun, 23 Jan 2011 12:07:00 -0000 Subject: RE: Differentiating symbols in multiple copies of shared libraries Message-ID: <9C4E85B61203CD419BB3A638E5F6833301A393C916FA@il-ex01.ad.checkpoint.com> References: <9C4E85B61203CD419BB3A638E5F6833301A37EBFB20B@il-ex01.ad.checkpoint.com> In-Reply-To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: 2011-01/txt/msg00092.txt.bz2 A developer in our organization added some code to allow differentiation be= tween symbols with the same name in different object files. This feature is= enabled once a GDB variable called symlib is set. Presumably this addition is not written according to GNU policy or GDB conv= entions, yet this feature is important as discussed below. Could you recommend on a procedure for promoting this required feature (or = anyway merge the source code to GDB)? Is there any contact for working with= for forwarding the implementation (currently diff in 4 files: minsym.c, st= ack.c, symtab.h, symtab.c)? BR, Avi -----Original Message----- From: Tom Tromey [mailto:tromey@redhat.com]=20 Sent: Thursday, December 09, 2010 11:53 PM To: Avi Gozlan Cc: 'gdb@sourceware.org' Subject: Re: Differentiating symbols in multiple copies of shared libraries >>>>> "Avi" =3D=3D Avi Gozlan writes: Avi> We did not find a way for GDB to refer to a symbol in a specific Avi> copy of the object file (other then referring to the specific Avi> address). There is currently no way to do this. Avi> Please note that we need to differentiate between symbols not only Avi> for defining breakpoints but for other needs such as disassembly, Avi> backtrace as well. Avi> Your input regarding this issue will be appreciated. I think it would be a welcome addition to gdb. The dbx syntax doesn't seem particular gdb-ish to me, but it would do. HPD-like syntax along the lines of "#libfoo.so#function" has also been suggested. If you implement this in linespecs, which is the natural approach, then it will automatically work for disassembly. For "backtrace", I guess you mean that at least ambiguous symbols should be printed in this syntax in a backtrace. I'm sure that is doable as well. I am not sure whether anybody is working on this. At the very least, please file a bug. Tom