This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: macros, debug information, and parse_macro_definition
- From: Keith Walker <keith dot walker at arm dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 29 Apr 2003 17:16:13 +0100
- Subject: Re: macros, debug information, and parse_macro_definition
- References: <3EAE927E.4030005@redhat.com>
At 11:55 29/04/2003 -0400, Daniel Berlin wrote:
It's trivial to do macro information compression, unlike normal dwarf2
info compression, because the macro info has no references. It is what it
is. With a smart algorithm (it's a bit tricky to keep the semantics the
same after merging all the macro infos), you could simply take all the
macro infos, merge them, make one macro info, and point all the debug
sections at it.
I think, anyway.
I'm not sure whether your comment is about macro info in general or about
macro info in DWARF2.
Unfortunately, for DWARF2 debugging information, I don't think it is quite
so easy in that the macro information can include file start/end entries
which refer to file entries in the associated line number information - so
you would also have to do something about merging the line number tables as
well; and hence update all other entries that refer to the file entries.
Keith