This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: debug_line section


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]