Re: [PATCH] Mark Pascal as case-insensitive

Paul Koning
2025-11-14T22:04:21Z

> On Nov 14, 2025, at 2:08 PM, Tom Tromey <tromey@adacore.com> 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.
>
> Tom

Is the purpose of that mechanism to allow individual symbols to be case sensitive, or not? Neat, but where would that be used?

paul