This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: debugging dwarf2 info
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Per Bothner <per at bothner dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 14 Jan 2002 15:12:06 -0800
- Subject: Re: debugging dwarf2 info
- References: <3C4360FC.4030904@bothner.com>
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