This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFD] objfiles.h, symfile.c, mdebugread.c: Fixes for Digital Unix.
- To: "Peter.Schauer" <Peter dot Schauer at regent dot e-technik dot tu-muenchen dot de>
- Subject: Re: [RFD] objfiles.h, symfile.c, mdebugread.c: Fixes for Digital Unix.
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: 07 Nov 2000 18:34:01 -0500
- Cc: gdb-patches at sourceware dot cygnus dot com
- References: <200011060732.IAA23824@reisser.regent.e-technik.tu-muenchen.de>
It seems like we're adding a bunch of members to struct objfile, and a
bunch of macros to access them, and a bunch of code to
default_symfile_offsets to initialize them, for the benefit of
a new function `sect_index_for_sc' in mdebugread.c.
It seems like it would be cleaner to simply have some mdebug-specific
code look up the offsets and fill in a table indexed by mdebug SC
number, which sect_index_for_sc could then access directly. That
would keep the entire change isolated in mdebugread.c, which is the
only reader that needs all that info. Does that sound reasonable?
Peter, I think you're more familiar with the big picture regarding the
section offset handling than I am, so I'm interested in your comments.