This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
mi/896: gdb/mi core dumps in -var-list-children
- From: alain at qnx dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 20 Dec 2002 17:17:11 -0000
- Subject: mi/896: gdb/mi core dumps in -var-list-children
- Reply-to: alain at qnx dot com
>Number: 896
>Category: mi
>Synopsis: gdb/mi core dumps in -var-list-children
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 20 09:18:03 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: alain@qnx.com
>Release: unknown-1.0
>Organization:
>Environment:
gdb-5.2.1 and 5.3 Linux
>Description:
# cat c.c
#include <stdio.h>
int array[] = { 1, 2, 3, 4};
int main () {
printf("Hello world\n");
return 0;
}
# gcc -o c -g c.c
# gdb -i mi c
GNU gdb 5.2.1
Copyright 2002 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"...
(gdb)
b main
&"b main\n"
^done
(gdb)
r
&"r\n"
^done,reason="breakpoint-hit",bkptno="1",thread-id="0",frame={addr="0x08048466",func="main",args=[],file="c.c",line="5"}
(gdb)
-var-create - * array
^done,name="var1",numchild="-1",type="int [0]"
(gdb)
-var-list-children var1
Segmentation fault (core dumped)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: