From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30191 invoked by alias); 5 Jul 2013 18:50:54 -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 30164 invoked by uid 89); 5 Jul 2013 18:50:49 -0000 X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS,TW_CR autolearn=ham version=3.3.1 Received: from mail-bk0-f52.google.com (HELO mail-bk0-f52.google.com) (209.85.214.52) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 05 Jul 2013 18:50:48 +0000 Received: by mail-bk0-f52.google.com with SMTP id d7so1140584bkh.39 for ; Fri, 05 Jul 2013 11:50:46 -0700 (PDT) X-Received: by 10.204.241.75 with SMTP id ld11mr2028491bkb.78.1373050245924; Fri, 05 Jul 2013 11:50:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.205.141.65 with HTTP; Fri, 5 Jul 2013 11:50:25 -0700 (PDT) In-Reply-To: <51D6D57E.6070302@redhat.com> References: <51D6D57E.6070302@redhat.com> From: crquan Date: Fri, 05 Jul 2013 18:50:00 -0000 Message-ID: Subject: Re: gdb cross debugging with core files: no backtrace and no sharedlibrary loading To: Pedro Alves Cc: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2013-07/txt/msg00030.txt.bz2 On Fri, Jul 5, 2013 at 7:17 AM, Pedro Alves wrote: > On 07/02/2013 10:32 AM, crquan wrote: >> Hi all, >> >> I have been using gdb-7.3 for my arm linux board projects for a long time, >> for most applications memory crash problems I debug the program with a >> core file under gdb, with correct sysroot and solib-search-path, the >> backtrace command >> was always able to indicate where it crashed, >> but with a recent ported program, it ceased working, no any symbol >> from sharedlibrary loaded, and backtrace just gave addresses with no >> symbol, >> that I cannot guess at that address is it a function, from binary text >> or a library text section? >> >> I'm not sure is this a gdb bug or I used it wrong, I compiled a >> gdb-7.6 but got same; want to see if any one met same or similar >> error, and how can I manually load symbol table from those libraries? >> any suggests or comments are welcome, >> Thanks, > > Hard to say... If you've given gdb the correct sysroot, _and_ the > correct program binary, than this should work, so it would sounds like > a bug. Does this happen only with core files? IOW, debugging live > programs works fine? Thanks for replying, I have given this gdb with correct sysroot and solib-search-path, with my other applications debugging with gdb can load symbols from correct libraries, only with a particular application gdb doesn't load shared libraries, all my applications are compiled by a same gcc/glibc cross toolchain, I've tried a live session by "target remote :", this time gdb loaded ld-linux.so, other library symbols are still missing, Do you know some manual commands to load shared library symbols? Or could you tell something from gdb source tree, I'd like to check if it is a gdb bug, Thanks, > > -- > Pedro Alves