public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Backtrace with #-1 frame?
@ 2005-03-29 21:14 Jon Ringle
  2005-03-29 21:24 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Ringle @ 2005-03-29 21:14 UTC (permalink / raw)
  To: gdb

I am having problems doing a backtrace with the latest gdb cvs code. Below is 
a testcase:

Jon

[ringlej@heavymobile testcode]$ cat foo.c
#include <stdio.h>

void foo(int i)
{
        printf("foo(%d)\n", i);
}

void bar(int j)
{
        printf("bar(%d)\n", j);
        foo(j+1);
}

int main(void)
{
        bar(1);
}
[ringlej@heavymobile testcode]$ CFLAGS="-g -O0" make foo
cc -g -O0    foo.c   -o foo
[ringlej@heavymobile testcode]$ ~/gdb-cvs/i686/gdb/gdb foo
GNU gdb 6.3.50.20050329-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db 
library "/lib/tls/libthread_db.so.1".

(gdb) b foo
Breakpoint 1 at 0x8048372: file foo.c, line 5.
(gdb) run
Starting program: /home/ringlej/testcode/foo
Backtrace limit of 50 exceeded
Backtrace limit of 50 exceeded
bar(1)
Backtrace limit of 50 exceeded

Breakpoint 1, foo (i=2) at foo.c:5
5               printf("foo(%d)\n", i);
(gdb) bt
#-1 foo (i=2) at foo.c:5
Backtrace limit of 50 exceeded
(gdb)

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

* Re: Backtrace with #-1 frame?
  2005-03-29 21:14 Backtrace with #-1 frame? Jon Ringle
@ 2005-03-29 21:24 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2005-03-29 21:24 UTC (permalink / raw)
  To: Jon Ringle; +Cc: gdb

On Tue, Mar 29, 2005 at 03:56:37PM -0500, Jon Ringle wrote:
> I am having problems doing a backtrace with the latest gdb cvs code. Below is 
> a testcase:

This is a bug in the "set backtrace limit" command.  Find where you
have a .gdbinit setting that and disable it to work around the problem;
I haven't investigated the actual bug.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

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

end of thread, other threads:[~2005-03-29 21:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-29 21:14 Backtrace with #-1 frame? Jon Ringle
2005-03-29 21:24 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).