[Bug debug/11816] Incorrect debugging information for anonymous structures
pinskia at physics dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Wed Aug 6 00:05:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11816
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed| |1
GCC target triplet|i386-pc-linux-gnu |i?86-pc-linux-gnu
Keywords| |wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2003-08-06 00:05:37
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-08-06 00:05 -------
After add "expr_t t;" to main (as gcc on the mainline removes unused types), I could reproduce this
on 3.3.1 (20030707) and the mainline and 3.0.4 with gdb (2003-07-30):
tin:~/src/gnu/gcctest>~/ia32_linux_gcc3_3/bin/gcc -g pr11816.c -ggdb
tin:~/src/gnu/gcctest>gdb a.out
GNU gdb 2003-07-30-cvs
Copyright 2003 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
Breakpoint 1 at 0x8048344: file pr11816.c, line 58.
(gdb) run
Starting program: /home/gates/pinskia/src/gnu/gcctest/a.out
Breakpoint 1, main () at pr11816.c:58
58 return 0;
(gdb) ptype expr_t
type = struct expr {
exprkind kind;
union {
format_t format;
char *varname;
double constant;
};
}
More information about the Gcc-bugs
mailing list