This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: don't read coff line number unless we have symbols too
- From: Jim Blandy <jimb at redhat dot com>
- To: Hilfinger at otisco dot mckusick dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: 25 Jun 2002 17:07:30 -0500
- Subject: Re: RFA: don't read coff line number unless we have symbols too
- References: <200206250230.TAA21747@otisco.McKusick.COM>
"Paul N. Hilfinger" <hilfingr@otisco.mckusick.com> writes:
> OK. Further investigation (by Donn Terry) indicates that this change is
> not a problem. In the cases on Interix that we were worried about, there
> is still a linker symbol table with non-debugging symbols, and so the line
> numbers aren't tossed after all.
I'm remembering more about this now --- COFF line numbers aren't
*meaningful* in the absence of linker symbols. They indicate source
files by symtab indices. Or some such. So I think it's always got to
be harmless to ignore line number info when you don't have symbols.
(I'm so out of it. I could be completely wrong about what this patch
even does. If what I'm saying is nonsense, just say so and I'll go
figure out what I was really thinking.)