Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Increasing backtrace entries
@ 2008-06-26  8:00 JobHunts02
  2008-06-26  9:15 ` Andreas Schwab
  0 siblings, 1 reply; 5+ messages in thread
From: JobHunts02 @ 2008-06-26  8:00 UTC (permalink / raw)
  To: gdb

When I run gdb on a core dump after my application crashes, my backtrace  
consists of only 1 entry (see below).  Is there a way to increase the  number of 
entries in the backtrace so I can determine how I got to this  point?  Does 
only getting 1 entry in the trace indicate something?
 
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License  GPLv3+: GNU GPL version 3 or later 
<_http://gnu.org/licenses/gpl.html_ (http://gnu.org/licenses/gpl.html) >
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=i686-pc-linux-gnu  
--target=powerpc-linux"...
 
warning: exec file is newer than core file.
Cannot access memory at  address 0x6d61706c
(gdb) bt
#0  0x1003cc60 in wsrFind  (
reg_p=0x30284d9e <Address 0x30284d9e out of  bounds>, rxc=-1)
at lwc.c:4024
Cannot access memory  at address 0x30284d84
(gdb)




**************Gas prices getting you down? Search AOL Autos for 
fuel-efficient used cars.      (http://autos.aol.com/used?ncid=aolaut00050000000007)


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Increasing backtrace entries
@ 2008-06-27  6:05 JobHunts02
  2008-06-27 17:57 ` Michael Snyder
  0 siblings, 1 reply; 5+ messages in thread
From: JobHunts02 @ 2008-06-27  6:05 UTC (permalink / raw)
  To: gdb

In a message dated 6/26/2008 11:27:23 AM Pacific  Daylight Time, 
msnyder@specifix.com writes:
> > > warning: exec file  is newer than core file.
> > > Cannot access memory at  address  0x6d61706c
> > > (gdb) bt
> > > #0  0x1003cc60 in  wsrFind  (
> > > reg_p=0x30284d9e <Address 0x30284d9e out  of  bounds>, rxc=-1)
> > > at lwc.c:4024
> > >  Cannot access memory  at address 0x30284d84
> > > (gdb)
>  > 
> > Apparently the core file does not match the executable and/or  debugging
> > info you have.  If that is the case then  nothing can be done about that,
> > except by manually decoding the  frames.
>
> Yes, the appearance is that either (a) you have  recompiled
> the executable since the corefile was generated, or (b)  it's
> the wrong executable, in which case finding the right one
>  will solve your problem.  


I can assure you:
 
(a) The executable was not recompiled after the corefile was generated.  and
(b) The executable is the same one that lead to the generation of the  
corefile.
 
Any other explanations?  I am running Linux 2.6.10 on PowerPC.and was  using 
gdb 6.8.  I have seen the same behavior using older versions of gdb  too.



**************Gas prices getting you down? Search AOL Autos for 
fuel-efficient used cars.      (http://autos.aol.com/used?ncid=aolaut00050000000007)


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

end of thread, other threads:[~2008-06-27 17:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-26  8:00 Increasing backtrace entries JobHunts02
2008-06-26  9:15 ` Andreas Schwab
2008-06-26 18:26   ` Michael Snyder
2008-06-27  6:05 JobHunts02
2008-06-27 17:57 ` Michael Snyder

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