From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21254 invoked by alias); 1 Feb 2003 17:12:15 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21245 invoked from network); 1 Feb 2003 17:12:14 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 1 Feb 2003 17:12:14 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18f34b-0006vv-00; Sat, 01 Feb 2003 13:13:06 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18f1CB-0007lO-00; Sat, 01 Feb 2003 12:12:47 -0500 Date: Sat, 01 Feb 2003 17:12:00 -0000 From: Daniel Jacobowitz To: jlm Cc: gdb@sources.redhat.com Subject: Re: Backtrace not giving meaningful info Message-ID: <20030201171246.GC29662@nevyn.them.org> Mail-Followup-To: jlm , gdb@sources.redhat.com References: <1044113934.7232.24.camel@PC2> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1044113934.7232.24.camel@PC2> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-02/txt/msg00013.txt.bz2 On Sat, Feb 01, 2003 at 10:38:52AM -0500, jlm wrote: > I'm using gdb 5.3 to debug a C++ program that has been compiled with gcc > 3.2 using the -gdwarf-2 -g3 flags. I can reliably make my program crash, > and at that point, I want to know where my program crashed at, so I do a > backtrace: > > (gdb) bt > #0 0x4007cbd8 in ?? () > #1 0x4007b208 in ?? () > #2 0x40079560 in ?? () > #3 0x4008e300 in ?? () > #4 0x4008d44c in ?? () > #5 0x4008e9f7 in ?? () > #6 0x4006da3f in ?? () > #7 0x4006d25a in ?? () > #8 0x40082a2b in ?? () > #9 0x4008fc30 in ?? () > #10 0x4008fa6f in ?? () > #11 0x408d12c3 in > Glib::SignalProxyNormal::slot0_void_callback(_GObject*, void*) > (self=0x818d180, data=0xbfffd764) at signalproxy.cc:101 > > I have two questions. One, why doesn't the backtrace go all the way back > to main()? Two, what must I do in order to get some more meaningful > information in the backtrace? The ?? doesn't help me much. Not enough information. You need to figure out where those addresses actually are; are they in a shared library somewhere? Try "info shared". -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer