debug_line section

Nick Clifton nickc@cambridge.redhat.com
Fri Apr 27 07:50:00 GMT 2001


Hi Gil,

>    I'm working on a code these days, and I came to a point
> where I need to modify the debug_line table. I started looking
> around, and came to the conclusion that I have to write 
> a DWARF2 debug information parser myself. But I know readelf.c
> parses it, and I know dwarf2.c does it as well.

There is also dwarf2read.c in the gdb sources and dwarf2out.c in the
gcc sources.

> The question is,
> is there a code, included in the bfd library, which is somewhat
> portable that can modify debug_info before final linkage?

The short answer is no.  There is code to dissect the debug_info
section, but not to modify it and then reconstruct it,

Cheers
        Nick



More information about the Binutils mailing list