From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12862 invoked by alias); 4 Jun 2013 18:07:31 -0000 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 Received: (qmail 12828 invoked by uid 89); 4 Jun 2013 18:07:30 -0000 X-Spam-SWARE-Status: No, score=-6.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_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; Tue, 04 Jun 2013 18:07:29 +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 r54I7RcT019083 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 4 Jun 2013 14:07:27 -0400 Received: from host2.jankratochvil.net (ovpn-116-66.ams2.redhat.com [10.36.116.66]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r54I7NGE025184 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 4 Jun 2013 14:07:26 -0400 Date: Tue, 04 Jun 2013 18:07:00 -0000 From: Jan Kratochvil To: Ben Cheng Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Ignore the first entry returned by svr4_current_sos_via_xfer_libraries for dynamically linked programs Message-ID: <20130604180722.GA23588@host2.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 X-SW-Source: 2013-06/txt/msg00054.txt.bz2 Hi Ben, On Tue, 28 May 2013 20:31:31 +0200, Ben Cheng wrote: > The first entry in the xml list returned by > svr4_current_sos_via_xfer_libraries() is the executable itself. [...] http://sourceware.org/bugzilla/show_bug.cgi?id=15507 > Currently Android is using gdbserver from 7.1 and gdb from 7.3. [...] > lm="0xb6fed108" l_addr="0x0" l_ld="0x0"/> at all, this feature is in gdbserver 7.4+ only. Main executable should not have an entry, it has only "main-lm" attribute: info '(gdb)Library List Format for SVR4 Targets' Additionally the single `main-lm' attribute specifies address of `struct link_map' used for the main executable. GNU/Linux FSF gdbserver-HEAD list looks like: Sending packet: $qXfer:libraries-svr4:read::0,fff#91...Packet received: l^M Regards, Jan