This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

backtrace/1760: set backtrace limit broken


>Number:         1760
>Category:       backtrace
>Synopsis:       set backtrace limit broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 25 18:38:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     dsl@sources.redhat.com
>Release:        unknown-1.0
>Organization:
>Environment:
x86 fedora 2, and others 
>Description:

The backtrace limit setting is busted, the latest CVS + GDB 6.2, and
6.0..   Symptoms are lots of warnings about the backtrace limit being
exceeded when it clearly isn't, and also a frame of -1!    When the
limit is removed the output is then two frames instead of one..

#include <stdio.h>

int main() {

  int x, y;

  x = 1;
  y = 2;

  printf("%d %d\n", x, y);
}


GNU gdb 20040817
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 main
Breakpoint 1 at 0x8048380: file seqtest.c, line 7.
(gdb) r
Starting program: /home/david/Work/v1-7-3/code/ddt/examples/seq

Breakpoint 1, main () at seqtest.c:7
7         x = 1;
(gdb) bt
#0  main () at seqtest.c:7
(gdb) set backtrace limit 100
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/david/Work/v1-7-3/code/ddt/examples/seq
Backtrace limit of 100 exceeded
Backtrace limit of 100 exceeded

Breakpoint 1, main () at seqtest.c:7
7         x = 1;
(gdb) bt
#-1 main () at seqtest.c:7
Backtrace limit of 100 exceeded
(gdb) set backtrace limit 0
(gdb) bt
#-1 main () at seqtest.c:7
#0  main () at seqtest.c:7
(gdb)



>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-csrc; name="foo.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="foo.c"

I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKCiAgaW50IHgsIHk7CgogIHggPSAxOwog
IHkgPSAyOwoKICBwcmludGYoIiVkICVkXG4iLCB4LCB5KTsKfQo=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]