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

Tom Tromey tom@tromey.com
Fri Nov 20 15:50:03 GMT 2020


>>>>> "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


More information about the Gdb-patches mailing list