[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GDB crashes when evaluating an expression
From: |
Xavier de Gaye |
Subject: |
GDB crashes when evaluating an expression |
Date: |
Tue, 17 Feb 2004 08:22:20 -0500 |
GDB crashes when evaluating an expression. See test case below.
====================================================================
/* The foobar program */
main()
{
int i;
for (i = 0; ; i++)
{
printf("value %d\n", i);
}
}
========================= GDB INPUT ================================
file foobar
break main
commands 1
print "foobar"
end
run
========================= GDB OUTPUT ===============================
GNU gdb 5.3
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 "i586-pc-linux-gnu".
(gdb) Reading symbols from foobar...done.
(gdb) Breakpoint 1 at 0x8048466: file foobar.c, line 6.
(gdb) >>(gdb) Starting program: /home/xavier/tmp/foobar
Breakpoint 1, main () at foobar.c:6
6 for (i = 0; ; i++)
$1 = "foobar"
warning: Invalid control type in command structure.
Segmentation fault
====================================================================
__________________________________________________________________
New! Unlimited Netscape Internet Service.
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register
Act now to get a personalized email address!
Netscape. Just the Net You Need.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- GDB crashes when evaluating an expression,
Xavier de Gaye <=