[PATCH 2/6] Display user op byte
Jan Kratochvil
jan.kratochvil@redhat.com
Wed Feb 15 22:58:00 GMT 2017
Hi,
I found this small patch useful when decrypting new DWARF.
Jan
binutils/ChangeLog
2017-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
* dwarf.c (decode_location_expression): Display also OP.
---
binutils/dwarf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 368c498..9d9a657 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -1421,9 +1421,9 @@ decode_location_expression (unsigned char * data,
default:
if (op >= DW_OP_lo_user
&& op <= DW_OP_hi_user)
- printf (_("(User defined location op)"));
+ printf (_("(User defined location op 0x%x)"), op);
else
- printf (_("(Unknown location op)"));
+ printf (_("(Unknown location op 0x%x)"), op);
/* No way to tell where the next op is, so just bail. */
return need_frame_base;
}
More information about the Binutils
mailing list