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]

mi/896: gdb/mi core dumps in -var-list-children


>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:


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