From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30774 invoked by alias); 8 Jun 2012 12:39:16 -0000 Received: (qmail 30766 invoked by uid 22791); 8 Jun 2012 12:39:16 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,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; Fri, 08 Jun 2012 12:38:56 +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 q58Ccqdb015310 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 8 Jun 2012 08:38:52 -0400 Received: from host2.jankratochvil.net (ovpn-116-47.ams2.redhat.com [10.36.116.47]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q58CclUv010032 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 8 Jun 2012 08:38:50 -0400 Date: Fri, 08 Jun 2012 12:39:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: "Maciej W. Rozycki" , Joakim Tjernlund , gdb-patches@sourceware.org Subject: Re: [PATCH] solib-svr4: Avoid unwanted shlib internal BPs When debugging Linux kernel or u-boot Message-ID: <20120608123847.GA13337@host2.jankratochvil.net> References: <1338562868-22411-1-git-send-email-Joakim.Tjernlund@transmode.se> <4FC8EC08.1060609@redhat.com> <20120601172214.GA21236@host2.jankratochvil.net> <4FC8FDD2.7060407@redhat.com> <4FD1EB8C.1050407@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FD1EB8C.1050407@redhat.com> 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: 2012-06/txt/msg00225.txt.bz2 On Fri, 08 Jun 2012 14:09:48 +0200, Pedro Alves wrote: > If you strip your binary, GDB won't find "_dl_debug_state", > but then it won't find "_start" nor "main" either! So it is a contrived > example to strip "_dl_debug_state" and "_start" but not "main", because > that's not something that is natural to do. strip "_dl_debug_state" was just a simulation of ld.so with incompatible/unimplemented state point. Nobody is going to strip just any specific symbols in real world. I still do not see why 'main' was not left there as it would not hurt and it could help. OTOH some real world case (some incompatible ld.so state point name + build) should be given first before finding a solution for it. Regards, Jan