Re: [PATCH] Mark Pascal as case-insensitive

Maciej W. Rozycki
2025-11-15T02:31:00Z

On Fri, 14 Nov 2025, Paul Koning wrote:

> > Tom> FWIW, I just found DW_AT_identifier_case:
> > Tom> ...
> > Tom> <0>: Abbrev Number: 1 (DW_TAG_compile_unit)
> > Tom> <c> DW_AT_name :
> > Tom> ../../../../src/gdb/testsuite/gdb.pascal/hello.pas
> > Tom> <3f> DW_AT_producer : Free Pascal 3.2.2 2025/09/10
> > Tom> <5c> DW_AT_comp_dir :
> > Tom> /data/vries/gdb/leap-16-0/build/gdb/testsuite/
> > Tom> <8b> DW_AT_language : 9 (ANSI Pascal)
> > Tom> <8c> DW_AT_identifier_case: 3 (case_insensitive)
> > Tom> <8d> DW_AT_stmt_list : 0
> > Tom> <91> DW_AT_low_pc : 0x401090
> > Tom> <99> DW_AT_high_pc : 0x401150
> > Tom> ...
> > Tom> which enables a finer granularity. We currently don't support this,
> > Tom> but I'm not sure if that's a relevant feature.
> >
> > I also didn't know about this.
> >
> > We could probably handle this in gdb, maybe by enhancing the
> > canonicalization step, though other approaches are possible.
>
> Is the purpose of that mechanism to allow individual symbols to be case
> sensitive, or not? Neat, but where would that be used?

Hmm, linking object modules coming from languages of the opposite symbol
case sensitivity? We don't seem to have support for that in the tools or
the object formats though and a DWARF tag is surely not enough for that.

Maciej