Re: [Dwarf-discuss] Question on DW_AT_low_pc for "repeated" DW_TAG_subprogram

2024-05-22 Thread Martin via Dwarf-discuss
On 20/05/2024 22:34, David Blaikie via Dwarf-discuss wrote: On Thu, May 16, 2024 at 1:05 PM Martin via Dwarf-discuss > wrote: On 16/05/2024 21:58, Martin via Dwarf-discuss wrote: > > If there is code (with debug info) that uses a class/str

[Dwarf-discuss] Question: Clarification for DW_AT_string_length

2024-05-22 Thread Martin via Dwarf-discuss
DW_AT_string_length is described as "that provides the value of the length of the string" Is that the length in characters or bytes? That matters for e.g. Utf-16 when the DW_TAG_base_type for the char has a DW_AT_byte_size of 2 (or more). Below is from the draft for DWARF-6, but the same i

[Dwarf-discuss] Proposal: add DW_AT_lower_bound to DW_TAG_string_type

2024-05-22 Thread Martin via Dwarf-discuss
# Proposal to add DW_AT_lower_bound to DW_TAG_string_type ## Background Pascal normally use 1-based indexes for strings. But it can also generate strings with a 0-based index. Other languages may have varying defaults. For a debugger to show the result of an expression like `MyString[5]`