This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gfortran - gdb problem
On Mon, 25 Jul 2005, Daniel Jacobowitz wrote:
> No; adding checks specific to the language is almost always wrong. The
> only case insensitive languages in the GDB source tree are Scheme (and
> I don't think the Scheme support has worked in many years) and Fortran.
> So disabling it for Fortran is about the same as deleting the code
> entirely.
OK. I cancel this method. I don't know the big picture before.
>
> Here's the original patch:
> http://sourceware.org/ml/gdb-patches/2000-08/msg00025.html
>
> Presumably, whatever HP Fortran compiler Jimmy Guo was trying to add
> support for always generated symbols in lowercase, so this was
> sufficient. gfortran doesn't. It appears to use case somewhat
> inconsistently.
>
> The fact is, our symbol table does not support case insensitive lookup.
> I suppose one cheap solution to this would be to lower case based on CU
> language when reading in the symbol table, but that's not a very pretty
> solution. Perhaps Elena (the symbol table maintainer) has another idea.
IMHO, the case insensitive lookup might be the long-term resolution. What
about define "strcmp" as an macro of "strcasecmp" if case_sensitive is
false? This might seems ugly, but it should help here.
Regards
- Wu Zhou