diff options
author | Mark Wielaard <mark@klomp.org> | 2023-02-10 13:56:58 +0100 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2023-02-14 17:28:40 +0100 |
commit | eab09c65a9eacb3f6001488f6980e5ac8f0c0aeb (patch) | |
tree | 7f26da34299c8b63545965f470a382739417999c /libdw | |
parent | 922068cebba6ed0dfc2da0a9e40e3e1b63e0aca9 (diff) | |
download | elfutils-eab09c65a9eacb3f6001488f6980e5ac8f0c0aeb.tar.gz |
libdw: Handle DW_OP_GNU_uninit in dwarf_getlocation
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>
Diffstat (limited to 'libdw')
-rw-r--r-- | libdw/ChangeLog | 5 | ||||
-rw-r--r-- | libdw/dwarf_getlocation.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libdw/ChangeLog b/libdw/ChangeLog index 2c1f61e8..ddf14e55 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/libdw/dwarf_getlocation.c b/libdw/dwarf_getlocation.c index 4e8c047b..66eab3e9 100644 --- a/libdw/dwarf_getlocation.c +++ b/libdw/dwarf_getlocation.c @@ -396,6 +396,7 @@ __libdw_intern_expression (Dwarf *dbg, bool other_byte_order, 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; |