debugging dwarf2 info

Zack Weinberg zack@codesourcery.com
Mon Jan 14 16:08:00 GMT 2002


On Mon, Jan 14, 2002 at 02:51:40PM -0800, Per Bothner wrote:
> Two questions:
> 
> (1) Can people recommend a tool for dumping in human-readable form
> the dwarf2 information in an object file?  Lacking that, I seem to
> remember that there used an option to heavily annotate the
> aseembley code, but I don't see that any more.

readelf -w dumps most of it.  It's a bit low level to understand
easily, though.

> (2) When I run a gcj-compiled Java program (built using Makefile
> rules etc that used to work) I get these error messages:
> 
> BFD: Dwarf Error: Invalid or unhandled FORM value: 14.

Similar errors from GDB mean that it needs to be patched to recognize
DW_FORM_strp.  Whichever program is printing this stuff (addr2line?)
presumably needs a similar patch.

There's something else happening which triggers this stuff, but I
wouldn't know what that is.

zw



More information about the Gcc mailing list