This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
symtab/893: -feliminate-dwarf2-dups unusable
- From: bkoz at redhat dot com
- To: gdb-gnats at sources dot redhat dot com
- Cc: jimb at redhat dot com
- Date: 17 Dec 2002 23:20:36 -0000
- Subject: symtab/893: -feliminate-dwarf2-dups unusable
- Reply-to: bkoz at redhat dot com
>Number: 893
>Category: symtab
>Synopsis: -feliminate-dwarf2-dups unusable
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 17 15:28:04 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: benjamin kosnik <bkoz@redhat.com>
>Release: unknown-1.0
>Organization:
>Environment:
linux x86
RH 8.0
RH 7.3
current gcc, src, binutils also dave carlton gdb branch
>Description:
see
http://sources.redhat.com/ml/gdb/2002-12/msg00258.html
in a nutshell:
I've been experimenting with -gdwarf-2 -feliminate-dwarf2-dups in libstdc++.
This combination of flags reduces the shared binary by 400k.
-g -O2
-rwxrwxr-x 1 bkoz bkoz 4.0M libstdc++.so.5.0.2*
-gdwarf-2 -feliminate-dwarf2-dups -O2
-rwxrwxr-x 1 bkoz bkoz 3.6M libstdc++.so.5.0.2*
The build and testsuite complete without incident, but then when I try to
debug, I get:
(gdb) file a.out
Reading symbols from a.out...DW_FORM_strp pointing outside of .debug_str section
This is with mainline gdb, and the dcarlton branch, with top-of-tree
gcc, on x86/linux.
>How-To-Repeat:
try to debug any C++ program created and linked with -feliminate-dwarf2-dups
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: