Re: [PATCH] KFAIL variable-length array tests which fail with Clang

Tom Tromey
2020-11-20T15:50:08Z

>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:

Tom> + gdb_byte last = block->data[block->size - 1];
Tom> + baton->locexpr.is_reference
Tom> + = !(last == DW_OP_stack_value || last == DW_OP_implicit_value);

I don't really understand the is_reference stuff, but my first reaction
is that it must be incorrect somehow.

Anyway, gdb can't do this sort of check. It will fail if the expression
has a different shape, which is completely allowed by the spec.

Tom