From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30021 invoked by alias); 8 Apr 2013 16:48:44 -0000 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 Received: (qmail 30011 invoked by uid 89); 8 Apr 2013 16:48:44 -0000 X-Spam-SWARE-Status: No, score=-8.1 required=5.0 tests=AWL,BAYES_00,KAM_STOCKGEN,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 08 Apr 2013 16:48:43 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r38GmeNv013261 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 8 Apr 2013 12:48:41 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r38Gmdui022990; Mon, 8 Apr 2013 12:48:40 -0400 Message-ID: <5162F4E7.10103@redhat.com> Date: Mon, 08 Apr 2013 16:48:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: Abhijit Ray Chaudhury CC: gdb@sourceware.org Subject: Re: Fwd: Question regarding core dump debugging using gdb on armv4 References: <515D459A.9080802@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-04/txt/msg00021.txt.bz2 On 04/08/2013 04:54 AM, Abhijit Ray Chaudhury wrote: > Pedro, > > In solib-svr4.c function > > static CORE_ADDR > elf_locate_base (void) { > ... > /* Find DT_DEBUG. */ > if (scan_dyntag (DT_DEBUG, exec_bfd, &dyn_ptr) > || scan_dyntag_auxv (DT_DEBUG, &dyn_ptr)) > return dyn_ptr; > > /* This may be a static executable. Look for the symbol > conventionally named _r_debug, as a last resort. */ > msymbol = lookup_minimal_symbol ("_r_debug", NULL, symfile_objfile); > if (msymbol != NULL) > return SYMBOL_VALUE_ADDRESS (msymbol); > > Are you asking me going through this section of the code ? Not sure what you mean, as I didn't ask anything, but if you're asking if that's the GDB code that implements what I explained, then yes. -- Pedro Alves