dwarf_getlocation would return an error when it saw a
DW_OP_GNU_uninit. Handle it by simply recognizing as a no argument
operation.
DW_OP_GNU_uninit is emitted by GCC as a marker to flag the location
expression as referring to an uninitialized value.
Signed-off-by: Mark Wielaard <mark@klomp.org>
+2023-02-10 Mark Wielaard <mark@klomp.org>
+
+ * dwarf_getlocation.c (__libdw_intern_expression): Handle
+ DW_OP_GNU_uninit.
+
2023-02-12 Mark Wielaard <mark@klomp.org>
* cfi.c (execute_cfi): Add cfi_asser before reading second lib128.
case DW_OP_form_tls_address:
case DW_OP_GNU_push_tls_address:
case DW_OP_stack_value:
+ case DW_OP_GNU_uninit:
/* No operand. */
break;
+2023-02-10 Mark Wielaard <mark@klomp.org>
+
+ * varlocs.c (print_expr): Handle DW_OP_GNU_uninit.
+
2023-02-07 Mark Wielaard <mark@klomp.org>
* tests/funcretval.c (handle_function): Check for
printf ("%s", opname);
break;
+ case DW_OP_GNU_uninit:
+ /* No arguments. Special. It means the expression describes
+ an value which hasn't been initialized (yet). */
+ printf ("%s", opname);
+ break;
+
case DW_OP_call_frame_cfa:
/* No arguments. Special. Pushes Call Frame Address as computed
by CFI data (dwarf_cfi_addrframe will fetch that info (either from