This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Uninitialized section index internal error on Tru64 5.1


Thank you Elena for reviewing my changes. May I suggest the following
patch for inclusion, then?

2002-04-16  J. Brobecker  <brobecker@gnat.com>

        * symfile.h (get_section_index): Define.
        * symfile.c (get_section_index): New function.
        * mdebugread.c (SC_IS_SBSS): New macro.
        (SC_IS_BSS): Return true for the scBss storage class only, as
        the scSBss storage class refers to the .sbss section.
        (parse_partial_symbols): Discard the symbols which associated
        section does not exist.
        Make sure to use the .sbss section index for symbols which
        storage class is scBss, rather than using the .bss section index.

One additional note: I split the SC_IS_BSS macro into 2 macros, one for
scBss and one for scSBss. I wonder if the same should not be done for
the SC_IS_TEXT and SC_IS_DATA macros as well. So far, I haven't found a
case where this causes a problem, so left them unchanged for now.

-- 
Joel

Attachment: changes.diff
Description: sect_index_uninitialized.diff


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