From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31303 invoked by alias); 9 Dec 2010 15:50:42 -0000 Received: (qmail 31295 invoked by uid 22791); 9 Dec 2010 15:50:41 -0000 X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=AWL,BAYES_05,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; Thu, 09 Dec 2010 15:50:35 +0000 X-CheckPoint: {4D00FAC7-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 oB9FoVF6002478 for ; Thu, 9 Dec 2010 17:50:31 +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.254.0; Thu, 9 Dec 2010 17:50:30 +0200 Received: from il-ex01.ad.checkpoint.com ([126.0.0.2]) by il-ex03.ad.checkpoint.com ([194.29.34.71]) with mapi; Thu, 9 Dec 2010 17:50:28 +0200 From: Avi Gozlan To: "'gdb@sourceware.org'" CC: Avi Gozlan Date: Thu, 09 Dec 2010 15:50:00 -0000 Subject: Differentiating symbols in multiple copies of shared libraries Message-ID: <9C4E85B61203CD419BB3A638E5F6833301A37EBFB20B@il-ex01.ad.checkpoint.com> 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: 2010-12/txt/msg00025.txt.bz2 Hello, In an implementation of a multi-threaded program we need to have multiple i= nstances of the same text residing in different virtual addresses. For this= purpose different copies of the object file are loaded using dlopen(). We did not find a way for GDB to refer to a symbol in a specific copy of th= e object file (other then referring to the specific address). I know that D= BX supports this by qualifying ``. Is th= ere similar feature in GDB? Quoting Daniel J. from a message posted in May 2007 it seemed that this iss= ue was already known: "> 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." Is this fixed? Please note that we need to differentiate between symbols not only for defi= ning breakpoints but for other needs such as disassembly, backtrace as well. Your input regarding this issue will be appreciated. Avi