This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/18199] [4.0 Regression] AIX XCOFF debugging broken
- From: "dje at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2004 15:40:45 -0000
- Subject: [Bug debug/18199] [4.0 Regression] AIX XCOFF debugging broken
- References: <20041028143955.18199.dje@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dje at gcc dot gnu dot org 2004-10-28 15:40 -------
The GDB 5.3 error comes from the macro
#define ANOFFSET(secoff, whichone) \
((whichone == -1) \
? (internal_error (__FILE__, __LINE__, "Section index is uninitialized"), -1
) \
: secoff->offsets[whichone])
The particular internal error occurs in the function
/* process one xcoff symbol. */
static struct symbol *
process_xcoff_symbol (register struct coff_symbol *cs, struct objfile *objfile)
{
...
case C_STSYM:
...
sym = define_symbol ((cs->c_value
+ ANOFFSET (objfile->section_offsets,
static_block_section)),
cs->c_name, 0, 0, objfile);
The internal error means that static_block_section no longer is properly
initialized after the recent dbxout.c changes.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18199