This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] pascal: Add lowercase copy of symbol name
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 29 Apr 2010 15:31:57 -0700
- Subject: Re: [RFC] pascal: Add lowercase copy of symbol name
- References: <002101cae7e9$e7229540$b567bfc0$@muller@ics-cnrs.unistra.fr>
> Here is a step in that direction: adding a new pascal_specific field
> for general_symbol_info structure, fill it with a lowercase copy of
> the symbol name and use that lowercase copy for searches if
> case_sensitivityy is off.
>
> I did not yet really decide exactly how I am going to use this
> inside that pascal expression parser. One idea would be to first
> try an exact match, and if that fails, try again forcing
> case_sensitivity to off temporarily.
>
> Comments?
I can't really say that I am fond of this approach - at all. We already
store the linkage name as well as the natural name. Can't you use that
in the language-specific lookup routines to make the search case
insensitive?
There is also something I'm confused about: If Pascal is *not* case-
sensitive, why make the debugger optionally case-sensitive? Why not
always have a case-insensitive interpreter? You aluded that there were
some reasons...
--
Joel