A polite ping :)

On Wed, Sep 17, 2025 at 04:39:12PM +0100, Yury Khrustalev wrote:
> Lack of DW_AT_bit_stride in a DW_TAG_array_type entry causes GDB to infer
> incorrect element size for vector types. The causes incorrect display of
> SVE predicate variables as well as out of bounds memory access when reading
> contents of SVE predicates from memory in GDB.
> 
>       PR debug/121964
> 
> gcc/
>       * dwarf2out.cc
>       (base_type_die): add DW_AT_bit_size attribute
>       for boolean types.
>       (gen_array_type_die): add DW_AT_bit_stride attribute for
>       array types based on element type bit precision for integer
>       and boolean element types.
> 
> gcc/testsuite/
>       * g++.target/aarch64/sve/dwarf-bit-stride.C: New test.
>       * gcc.target/aarch64/sve/dwarf-bit-stride.c: New test.
> ---
> 
> Passes regression on aarch64. OK for trunk?
> 
> base-commit: 282c1e682e0
 

Reply via email to