This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Another Fortran problem...
On Fri, Oct 26, 2007 at 11:39:11AM +0100, Fran?ois-Xavier Coudert wrote:
> Is "DW_AT_MIPS_linkage_name: foo_" the reason for this difference?
Yes.
> Should DW_AT_MIPS_linkage_name actually be emitted or is this wrong?
I'm not sure. I was just looking at this problem; I have some
in-progress patches that remove GDB's use of DW_AT_MIPS_linkage_name,
and I was very surprised when they fixed a recent gnats PR about
a similar Fortran problem.
"foo_" is really the linkage name, so if gfortran wants to emit
DW_AT_MIPS_linkage_name then that's the value it should have. But
GDB doesn't have a demangler for Fortran mangled names so
it ends up stuck with the mangled name.
What sort of mangling does gfortran do? Should we be able to demangle
it? Or just ignore linkage names for Fortran?
--
Daniel Jacobowitz
CodeSourcery