This is the mail archive of the gdb@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: dbxread.c:1771: internal-error: sect_index_data not initialized


Jim Blandy wrote:
>
> Unfortunately, this revision isn't right.
>
> Falling back to the .bss section's offset when no .data offset is
> available makes sense (sort of) when we're not really sure which
> section contains the object whose address we're relocating.  If there
> is no .data section, the object certainly isn't there, so it's a
> decent guess that it belongs in .bss.
>
> But there are other cases where we know for sure that the symbol is in
> the .data section, not the .bss section.  In those cases, if we have
> no .data section offset, then GDB is in an inconsistent state, and
> should crash.  It's not correct to fall back to the .bss section.

Thanks for the explanation. I'll pass it on to my co-worker and rebuild our gdb!

Neal



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