Re: [PATCH] Fix assertion when trying to represent Ada arrays in CodeView

2025-09-01 Thread Mark Harmstone
On 30/08/2025 3.32 pm, Jeff Law wrote: On 8/29/25 2:36 PM, Mark Harmstone wrote: The LF_ARRAY CodeView type represents a C- or C++-style array, which a length known at compile time. We were crashing when using -gcodeview with Ada (bug #121157), as the DW_AT_upper_bound value is not an unsigned

Re: [PATCH] Fix assertion when trying to represent Ada arrays in CodeView

2025-08-30 Thread Jeff Law
On 8/29/25 2:36 PM, Mark Harmstone wrote: The LF_ARRAY CodeView type represents a C- or C++-style array, which a length known at compile time. We were crashing when using -gcodeview with Ada (bug #121157), as the DW_AT_upper_bound value is not an unsigned integer but something more complicated

Re: [PATCH] Fix assertion when trying to represent Ada arrays in CodeView

2025-08-30 Thread Sam James
Mark Harmstone writes: > The LF_ARRAY CodeView type represents a C- or C++-style array, which a > length known at compile time. We were crashing when using -gcodeview > with Ada (bug #121157), as the DW_AT_upper_bound value is not an > unsigned integer but something more complicated: > > 0x01

[PATCH] Fix assertion when trying to represent Ada arrays in CodeView

2025-08-29 Thread Mark Harmstone
The LF_ARRAY CodeView type represents a C- or C++-style array, which a length known at compile time. We were crashing when using -gcodeview with Ada (bug #121157), as the DW_AT_upper_bound value is not an unsigned integer but something more complicated: 0x0123: DW_TAG_array_type