Bug 7358 - "Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader."
Summary: "Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader."
Status: CLOSED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-05 23:38 UTC by mec
Modified: 2008-12-19 19:15 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mec 2001-12-06 07:38:00 UTC
[Converted from Gnats 253]

Run the test suite with -gdwarf-2 (edit site.exp and set target to unix/-gdwarf-2).
Run gdb on the program.
The gdb symbol table can't handle DW_FORM-strp.

Test suite log excerpt:

(gdb) file /berman/fsf/_today_/berman/native/build/gdb/gdb_5_1-2001-07-29-branch/gdb/testsuite/gdb.base/run
Reading symbols from /berman/fsf/_today_/berman/native/build/gdb/gdb_5_1-2001-07-29-branch/gdb/testsuite/gdb.base/run...Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader.

The same gdb works with dwarf-2 in gcc 2.95.3, gcc 3.0.2, and gcc gcc-3_0-branch.
The same gdb works with stabs+ with gcc HEAD, gcc 2.95.3, gcc 3.0.2, and gcc gcc-3_0-branch.
gdb HEAD works with dwarf-2 and stabs+ with all four compilers.
Out of the 16 combinations, only this one is broken.

This bug is high priority to me.  Fixing this bug would enable me to test and report on this configuration regularly (the test suite takes 18 hours to run with all the timeouts, and then yields 188 ERRORs, 4 WARNINGs, and 2459 FAILs.

Release:
gdb gdb_5_1-2001-07-29-branch pulled 2001-12-03

Environment:
red hat linux 7.1
gcc HEAD pulled 2001-12-03
gdb gdb_5_1-2001-07-29-branch pulled 2001-12-03
binutils HEAD pulled 2001-12-03
configuration: native i686-pc-linux-gnu

How-To-Repeat:
See description.
Comment 1 mec 2001-12-06 07:38:00 UTC
Fix:
Daniel Jacobowitz suggests this porting this patch from the mainline to the branch:

http://sources.redhat.com/ml/gdb-patches/2001-11/msg00231.html

Also see this message:

http://sources.redhat.com/ml/gdb-patches/2001-12/msg00040.html
Comment 2 Michael Elizabeth Chastain 2001-12-10 14:01:18 UTC
State-Changed-From-To: open->closed
State-Changed-Why: Fixed as of 2001-12-08.
    The patch which Daniel pointed to was effective.
    That patch has been merged into the branch.