Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Backtrace not giving meaningful info
@ 2003-02-01 15:43 jlm
  2003-02-01 17:12 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: jlm @ 2003-02-01 15:43 UTC (permalink / raw)
  To: gdb

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.

Thanks.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Backtrace not giving meaningful info
  2003-02-01 15:43 Backtrace not giving meaningful info jlm
@ 2003-02-01 17:12 ` Daniel Jacobowitz
  2003-02-02 23:15   ` jlm
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2003-02-01 17:12 UTC (permalink / raw)
  To: jlm; +Cc: gdb

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Backtrace not giving meaningful info
  2003-02-01 17:12 ` Daniel Jacobowitz
@ 2003-02-02 23:15   ` jlm
  0 siblings, 0 replies; 3+ messages in thread
From: jlm @ 2003-02-02 23:15 UTC (permalink / raw)
  To: gdb

Thanks for the reply. Oddly enough, I ran it again and it now displays
complete info in the backtrace. Not sure what I've done different.

Also, seems like I can't debug my program via libtool as it says I
should be able to like:

libtool gdb foo_test

It says "No executable file specified." Instead I'm doing:

cd .libs
LD_PRELOAD=./foolib.so gdb foo_test

Oh, well. At least it works some way.

On Sat, 2003-02-01 at 12:12, Daniel Jacobowitz wrote:
> 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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-02 23:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-01 15:43 Backtrace not giving meaningful info jlm
2003-02-01 17:12 ` Daniel Jacobowitz
2003-02-02 23:15   ` jlm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox