Article View: gnu.gdb.bug
Article #10061Bug in gdb 3.3, command 'cond'
From: Andreas Schwab
Date: Thu, 28 Jun 1990 13:18
Date: Thu, 28 Jun 1990 13:18
43 lines
1851 bytes
1851 bytes
I found a bug in the gdb command `cond'. This is how to reproduce it:
- create a file, say test.c, with the following contents:
/* a very silly test program */
int y;
main()
{
a(1);
}
a(x)
{
y = x;
}
- compile this file with -g option producing executable test
- run gdb
- type in the commands as in the following typescript:
GDB 3.3, Copyright (C) 1989 Free Software Foundation, Inc.
There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "info copying" to see the conditions.
Type "help" for a list of commands.
(gdb) exec test
(gdb) sym test
Reading symbol data from /home/arwen/pgs/pg167/schwab/test/test...done.
(gdb) break main
Reading in symbols for test.c...done.
Breakpoint 1 at 0x2294: file test.c, line 5.
(gdb) cond 1 y == 0
(gdb) cond 1 x == 0
No symbol "x" in current context.
(gdb) cond 1 y == 0
gdb: free: Called with already freed block argument
Quit
--
Andreas Schwab schwab@ls5.informatik.uni-dortmund.de
University of Dortmund schwab%ls5@unido.uucp, schwab%ls5@unido.bitnet
[West-]Germany {uunet,mcvax}!unido!julien!schwab
Technical Details
Message-ID:
<9006281318.AA27327@julien.informatik.uni-dortmund.de>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!ls5.informatik.uni-dortmund.de!schwabShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,abb848a56573a9d7,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 1990-06-28 16:30:30 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!ls5.informatik.uni-dortmund.de!schwab From: schwab@ls5.informatik.uni-dortmund.de (Andreas Schwab) Newsgroups: gnu.gdb.bug Subject: Bug in gdb 3.3, command 'cond' Message-ID: <9006281318.AA27327@julien.informatik.uni-dortmund.de> Date: 28 Jun 90 13:18:15 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 43 Posted: Thu Jun 28 14:18:15 1990