From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7176 invoked by alias); 23 Jun 2009 17:00:15 -0000 Received: (qmail 7163 invoked by uid 22791); 23 Jun 2009 17:00:14 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 23 Jun 2009 17:00:08 +0000 Received: from spaceape7.eur.corp.google.com (spaceape7.eur.corp.google.com [172.28.16.141]) by smtp-out.google.com with ESMTP id n5NH033o026466 for ; Tue, 23 Jun 2009 18:00:03 +0100 Received: from qyk17 (qyk17.prod.google.com [10.241.83.145]) by spaceape7.eur.corp.google.com with ESMTP id n5NGxxfv018918 for ; Tue, 23 Jun 2009 10:00:00 -0700 Received: by qyk17 with SMTP id 17so288305qyk.18 for ; Tue, 23 Jun 2009 09:59:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.95.4 with SMTP id b4mr84840qcn.40.1245776399334; Tue, 23 Jun 2009 09:59:59 -0700 (PDT) In-Reply-To: References: Date: Tue, 23 Jun 2009 17:00:00 -0000 Message-ID: <8ac60eac0906230959k7d89636av6edd36d8d25b7457@mail.gmail.com> Subject: Re: Troubleshooting broken gdbserver/remote-target From: Paul Pluzhnikov To: Grant Edwards Cc: gdb@sources.redhat.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-System-Of-Record: true X-IsSubscribed: yes 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: 2009-06/txt/msg00220.txt.bz2 On Mon, Jun 22, 2009 at 10:09 PM, Grant Edwards wrote: > What would cause gdb to miss out on the fact that /lib/libuClibc-0.9.30.1.so > is mapped? > > Where does gdb get mapping info? I believe the code GDB should be using on Linux is in solib-svr4.c Gdb looks for _r_debug symbol and DT_DEBUG Elf32_Dyn entry to find the 'struct r_debug', which contains a linked list of loaded shared libraries, and traverses that list. My guess: either GDB is not finding _r_debug, or (more likely) is not traversing the list correctly. Cheers, -- Paul Pluzhnikov