From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10836 invoked by alias); 2 Jul 2013 09:32:37 -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 10825 invoked by uid 89); 2 Jul 2013 09:32:37 -0000 X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-bk0-f48.google.com (HELO mail-bk0-f48.google.com) (209.85.214.48) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 02 Jul 2013 09:32:36 +0000 Received: by mail-bk0-f48.google.com with SMTP id jf17so2202805bkc.35 for ; Tue, 02 Jul 2013 02:32:34 -0700 (PDT) X-Received: by 10.204.57.203 with SMTP id d11mr3834578bkh.69.1372757554198; Tue, 02 Jul 2013 02:32:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.205.141.65 with HTTP; Tue, 2 Jul 2013 02:32:14 -0700 (PDT) From: crquan Date: Tue, 02 Jul 2013 09:32:00 -0000 Message-ID: Subject: gdb cross debugging with core files: no backtrace and no sharedlibrary loading To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2013-07/txt/msg00005.txt.bz2 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, (gdb) bt 10 #0 0x402f6040 in ?? () #1 0x402f6030 in ?? () #2 0x402f6030 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) info sharedlibrary No shared libraries loaded at this time. (gdb) info symbol 0x402f6040 No symbol matches 0x402f6040. (gdb) show version GNU gdb (GDB) 7.6 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=x86_64-unknown-linux-gnu --target=arm-unknown-linux-gnu". For bug reporting instructions, please see: . (gdb) show sysroot [...] (gdb) show solib-search-path [...]