This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: debug_line section
- To: Gil megidish <megidish at usa dot net>
- Subject: Re: debug_line section
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- Date: 27 Apr 2001 16:45:22 +0100
- Cc: binutils at sources dot redhat dot com
- References: <20010426213938.1536.qmail@nwcst291.netaddress.usa.net>
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