[Top] [All Lists]

Re: gdb backtrace with core files

To: Daniel Jacobowitz <>
Subject: Re: gdb backtrace with core files
From: Brian Kuschak <>
Date: Thu, 7 Apr 2005 11:23:10 -0700 (PDT)
Comment: DomainKeys? See
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024;; b=HhF0yKMdhGLroA3NvgUkMZZkOXFMfKGSaiTgJZOe8QYKS3UVXg3NSBEYOvQEwzlRqQukjF0i2rtaZoTC4VU3sbxCMh6Wegjn9ahO0rUXMA7SLc9x5+UyQZMWETcGpKzZv4+bUD7uXv7cLDxHehcSqKsqr3zM2d8mjYtxZyF2wbg= ;
In-reply-to: 6667
Original-recipient: rfc822;
No luck with latest CVS version (GNU gdb

(gdb) bt
warning: GDB can't find the start of the function at
    GDB is unable to find the start of the function at
and thus can't determine the size of that function's
stack frame.
This means that GDB may be unable to access that stack
frame, or
the frames below it.
    This problem is most likely caused by an invalid
program counter or
stack pointer.
    However, if you think GDB should simply search
farther back
from 0x658 for code which looks like the beginning of
function, you can increase the range of the search
using the `set
heuristic-fence-post' command.
warning: GDB can't find the start of the function at
Previous frame identical to this frame (corrupt
(gdb) t
[Current thread is 1 (process 362)]
(gdb) bt
#0  0x00000658 in ?? ()
#1  0x00000658 in ?? ()
(gdb) info registers
          zero       at       v0       v1       a0    
  a1       a2       a3
 R0   00000000 2ab01970 00000000 00000338 00000000
00000000 00000000 00000db0
            t0       t1       t2       t3       t4    
  t5       t6       t7
 R8   0dafd6e5 00000001 2abccfd4 2abc8034 00000001
2aac2948 00000001 2abe0ce4
            s0       s1       s2       s3       s4    
  s5       s6       s7
 R16  00400f70 7fff7e74 00400ed0 00000001 00400c70
00000000 10010f80 00000000
            t8       t9       k0       k1       gp    
  sp       s8       ra
 R24  00000263 2ad2c788 2af318b5 00000000 2af8dab0
7fff7bf0 7fff7bf0 2abe0ce4
            sr       lo       hi      bad    cause    
      00800008 00108413 0001b4e9 800649b8 2ad2c7c8
           fsr      fir
      00000000 00000000


--- Daniel Jacobowitz <> wrote:
> On Thu, Apr 07, 2005 at 10:44:54AM -0700, Brian
> Kuschak wrote:
> > Is anyone succesfully using gdb for mipsel to
> debug
> > core dumps?  If so, can you share your secrets for
> > success?  I tried various recent versions (6.3,
> > 6.1.1), but backtrace never works right, even
> though
> > the stack pointer appears to be valid.  gdb-5.3
> > partially works, but not completely.  
> Give the CVS version a try, please.
> -- 
> Daniel Jacobowitz
> CodeSourcery, LLC

Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 

<Prev in Thread] Current Thread [Next in Thread>