From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20067 invoked by alias); 4 Jun 2013 18:18:18 -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 20031 invoked by uid 89); 4 Jun 2013 18:18:13 -0000 X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-oa0-f48.google.com (HELO mail-oa0-f48.google.com) (209.85.219.48) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 04 Jun 2013 18:18:12 +0000 Received: by mail-oa0-f48.google.com with SMTP id i4so407651oah.7 for ; Tue, 04 Jun 2013 11:18:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding:x-gm-message-state; bh=66Yq5bSCEFmijhA3TS9DXdW7i5yNsQPyx+iQw/Bycng=; b=cBtCGT+OOM5IMSGKWSF9atIACELfPNUdT3CHMTDTX3U23IzCKU5wSWy49GwHAim58j Z3hlK+DmsUqn91kcpbYpPnaNU/f1Gx2RCz2p2NNvf3jRqjgtuCmO2LYyYA2YKHC/uFRU ZJfSh48apu7CeFZTlbbzv2rxXU3H1y2LFX0mmFe8VJymTlSb8Fx+cCZNtu/4q0GlY7Vz /6pbCDs9C4gFgVf6ZxQVGQpLpC7V8hUmiOjKwGsghvBHJ7J0lOHCSvWxejtppayIcxNh aJmb+UVSx0W7hyHoRgLHq2yIrW+q0Hcz8+pHHSuiWm/m0QKVriyO7jCTUM2rXQsWDWMY lEyg== MIME-Version: 1.0 X-Received: by 10.60.98.134 with SMTP id ei6mr13030439oeb.21.1370369890720; Tue, 04 Jun 2013 11:18:10 -0700 (PDT) Received: by 10.182.22.49 with HTTP; Tue, 4 Jun 2013 11:18:10 -0700 (PDT) In-Reply-To: <20130604180722.GA23588@host2.jankratochvil.net> References: <20130604180722.GA23588@host2.jankratochvil.net> Date: Tue, 04 Jun 2013 18:18:00 -0000 Message-ID: Subject: Re: [PATCH] Ignore the first entry returned by svr4_current_sos_via_xfer_libraries for dynamically linked programs From: Ben Cheng To: Jan Kratochvil Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQnGzBwD2HxB1AjRSSAS0s1OLhRAjol/u5PyLX2/KLWY6549V6cSxrq8IFmLdcdvXnMy54mEsr3cJgPDwcvaFKX6BKfpeitHYiWuduVOokshr7xPG0B+cElIBw0+D6iaHLmOM5nSfORVrNPAuLOtzPkkmE4B8Kcdq+sHmmIdYoO8twLy4x8N1BEWwS51aIg4em4lTmzqvwDK3/l6jE8iZSPp0ithwQ== X-SW-Source: 2013-06/txt/msg00055.txt.bz2 Hmm this problem only shows up after I refresh gdbserver from the unmodified gdb 7.6 tree. As you mentioned, gdb 7.1 did not support library-list-svr4, so when I paired gdbserver 7.1 with gdb 7.6 they also work fine. On Tue, Jun 4, 2013 at 11:07 AM, Jan Kratochvil wrote: > 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=3D15507 >> Currently Android is using gdbserver from 7.1 and gdb from 7.3. > [...] >> " >> lm=3D"0xb6fed108" l_addr=3D"0x0" l_ld=3D"0x0"/> > in fact this GDB patch should be dropped. > > Bug is in the Android gdbsever implementation. FSF gdbserver 7.1 did not > support at all, this feature is in gdbserver 7.4+ on= ly. > > 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