http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57667

--- Comment #3 from Evgeny Gavrin <evgeny.gavrin at hotmail dot com> ---
Command to run:
egavrin@debian:~/dev/vd-issues/ld-memory-consumption/gcc-tests$ gcc-4.7 test.c
-O0 -g2 -gdwarf-2 -femit-struct-debug-detailed=ind:ord:base
egavrin@debian:~/dev/vd-issues/ld-memory-consumption/gcc-tests$ gdb ./a.out 
*********
(gdb) b 18
Breakpoint 1 at 0x400593: file test.c, line 18.
(gdb) run
Starting program:
/home/egavrin/dev/vd-issues/ld-memory-consumption/gcc-tests/a.out 

Breakpoint 1, main () at test.c:18
18      free(indir_ord);
(gdb) p dir_ord
$1 = {a = 5, b = 97 'a'}
(gdb) p indir_ord
$2 = (struct IND_ORD *) 0x601010
(gdb) p *indir_ord
$3 = {a = 10, b = 98 'b'}
(gdb) 

egavrin@debian:~/dev/vd-issues/ld-memory-consumption/gcc-tests$ gcc-4.7 test.c
-O0 -g2 -gdwarf-2 -femit-struct-debug-detailed=ord:base
egavrin@debian:~/dev/vd-issues/ld-memory-consumption/gcc-tests$ gdb ./a.out 
GNU gdb (GDB) 7.4.1-debian
This GDB was configured as "x86_64-linux-gnu".
Reading symbols from
/home/egavrin/dev/vd-issues/ld-memory-consumption/gcc-tests/a.out...done.
(gdb) b 18
Breakpoint 1 at 0x400593: file test.c, line 18.
(gdb) run
Starting program:
/home/egavrin/dev/vd-issues/ld-memory-consumption/gcc-tests/a.out 

Breakpoint 1, main () at test.c:18
18      free(indir_ord);
(gdb) p dir_ord
$1 = <incomplete type>
(gdb) p indir_ord 
$2 = (struct IND_ORD *) 0x601010
(gdb) p *indir_ord 
$3 = <incomplete type>

Reply via email to