From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4889 invoked by alias); 9 Dec 2010 21:53:32 -0000 Received: (qmail 4881 invoked by uid 22791); 9 Dec 2010 21:53:31 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_DB,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Dec 2010 21:53:25 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oB9LrFvL001451 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 9 Dec 2010 16:53:15 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id oB9LrFhB019426; Thu, 9 Dec 2010 16:53:15 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id oB9LrETL023864; Thu, 9 Dec 2010 16:53:15 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 7BC943780EF; Thu, 9 Dec 2010 14:53:14 -0700 (MST) From: Tom Tromey To: Avi Gozlan Cc: "'gdb\@sourceware.org'" Subject: Re: Differentiating symbols in multiple copies of shared libraries References: <9C4E85B61203CD419BB3A638E5F6833301A37EBFB20B@il-ex01.ad.checkpoint.com> Date: Thu, 09 Dec 2010 21:53:00 -0000 In-Reply-To: <9C4E85B61203CD419BB3A638E5F6833301A37EBFB20B@il-ex01.ad.checkpoint.com> (Avi Gozlan's message of "Thu, 9 Dec 2010 17:50:30 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2010-12/txt/msg00026.txt.bz2 >>>>> "Avi" == 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