From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23818 invoked by alias); 26 Nov 2011 21:11:24 -0000 Received: (qmail 23809 invoked by uid 22791); 26 Nov 2011 21:11:24 -0000 X-SWARE-Spam-Status: No, hits=-7.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_YM 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; Sat, 26 Nov 2011 21:11:05 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pAQLB40o008614 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 26 Nov 2011 16:11:04 -0500 Received: from host1.jankratochvil.net (ovpn-116-40.ams2.redhat.com [10.36.116.40]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id pAQLB2mQ014125 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 26 Nov 2011 16:11:03 -0500 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id pAQLB10U018435; Sat, 26 Nov 2011 22:11:01 +0100 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id pAQLB0Iu018434; Sat, 26 Nov 2011 22:11:00 +0100 Date: Sat, 26 Nov 2011 21:11:00 -0000 From: Jan Kratochvil To: David Miller Cc: gdb@sourceware.org Subject: Re: symbol versioning... Message-ID: <20111126211100.GA18383@host1.jankratochvil.net> References: <20111126.155633.969368403874195827.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111126.155633.969368403874195827.davem@davemloft.net> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2011-11/txt/msg00117.txt.bz2 On Sat, 26 Nov 2011 21:56:33 +0100, David Miller wrote: > These all fail on my sparc systems because my libc.so has two printf > symbols, each with a different ELF version. The older version appears > first in the dynamic symbol table, so that's the one which GDB uses, and > it's therefore not the one the executable will actually call. I should sometimes commit this patch: Re: [patch] Fix C++ demangling of minsyms with symver http://sourceware.org/ml/gdb-patches/2011-06/msg00045.html Maybe implementing its part: # One can see the default resolving to the @@ variant is not implemented. Not # sure if it should be but let that be a possible incremental patch in the # future. would solve this problem? > I can think of two ways to handle this: (3) With Tom Tromey's pending linespec patch GDB maybe could put a breakpoint on all the versions of such symbol. Thanks, Jan