[ was: Re: [PATCH] KFAIL variable-length array tests which fail with Clang ] On 11/19/20 11:53 PM, Tom de Vries wrote: > On 11/18/20 5:14 PM, Tom Tromey wrote: >>>>>>> "Gary" == Gary Benson via Gdb-patches writes: >> >> Gary> Clang describes the upper bounds of variable length arrays using >> Gary> a DW_AT_count attribute which references the DIE of a synthetic >> Gary> variable whose value is specified using a DW_AT_location. In >> Gary> some cases GDB correctly handles these, but in other cases GDB >> Gary> adds an extra dereference causing the test to fail. This commit >> Gary> marks these failing tests as caused by PR gdb/26905 when the >> Gary> test executable was built using Clang. >> >> Shouldn't we just fix the gdb bug instead? > > This adhoc patch: Here's the complete and tested patch. Any comments? Thanks, - Tom