From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32312 invoked by alias); 12 Oct 2011 21:16:32 -0000 Received: (qmail 32300 invoked by uid 22791); 12 Oct 2011 21:16:31 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS 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; Wed, 12 Oct 2011 21:16:18 +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.14.4/8.14.4) with ESMTP id p9CLGH19005689 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 12 Oct 2011 17:16:18 -0400 Received: from host1.jankratochvil.net (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p9CLGFfo020179 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 12 Oct 2011 17:16:17 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p9CLGFb4026177; Wed, 12 Oct 2011 23:16:15 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p9CLGDRD026164; Wed, 12 Oct 2011 23:16:13 +0200 Date: Wed, 12 Oct 2011 21:16:00 -0000 From: Jan Kratochvil To: Aleksandar Ristovski Cc: gdb-patches@sources.redhat.com Subject: Re: patch: solib_break from _r_debug.r_brk Message-ID: <20111012211613.GA25666@host1.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00374.txt.bz2 On Thu, 29 Sep 2011 15:55:10 +0200, Aleksandar Ristovski wrote: > I have a case where gdb can not find solib break function (in our > case _dl_debug_state) in cases where dynamic linker library is > stripped. It would be an interesting patch but I do not see it useful on glibc: $ readelf -Ws /lib64/ld-linux-x86-64.so.2 Symbol table '.dynsym' contains 28 entries: Num: Value Size Type Bind Vis Ndx Name 10: 0000000000223260 40 OBJECT GLOBAL DEFAULT 21 _r_debug@@GLIBC_2.2.5 18: 000000000000f610 2 FUNC GLOBAL DEFAULT 11 _dl_debug_state@@GLIBC_PRIVATE These symbols are the same category so if there is one, there will be both of them. Plus apparently `.dynsym' can never be `strip'ped. So the patch may make sense for QNX and then one should just ensure it does not break glibc. Thanks, Jan