From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27423 invoked by alias); 11 Jan 2012 17:13:32 -0000 Received: (qmail 27413 invoked by uid 22791); 11 Jan 2012 17:13:31 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,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; Wed, 11 Jan 2012 17:13:13 +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 q0BHDCtl006724 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 11 Jan 2012 12:13:12 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q0BHDAla013566; Wed, 11 Jan 2012 12:13:11 -0500 Message-ID: <4F0DC326.2090803@redhat.com> Date: Wed, 11 Jan 2012 17:13:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: Michael Eager CC: Mark Kettenis , gdb@sourceware.org Subject: Re: gdbarch_skip_solib_resolver question References: <4F0C9AD3.2000807@eagerm.com> <4e8cbd44794a5d98bc46a882c1379405.squirrel@webmail.xs4all.nl> <4F0DC166.2040603@eagerm.com> In-Reply-To: <4F0DC166.2040603@eagerm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: 2012-01/txt/msg00043.txt.bz2 On 01/11/2012 05:05 PM, Michael Eager wrote: > Unless I'm reading the code wrong, I don't think this can ever return > non-zero. This is called from handle_inferior_event (infrun.c:4754) > when in_solib_dynsym_resolve_code() is true. This means that the > pc points to the start of a PLT stub. That's not the only time in_solib_dynsym_resolve_code returns true, see svr4_in_dynsym_resolve_code. It returns true as well when the PC is within the interpreter / dynamic linker's text. -- Pedro Alves