This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 2/6] Display user op byte
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: binutils at sourceware dot org
- Cc: Victor Leschuk <vleschuk at accesssoftek dot com>
- Date: Wed, 15 Feb 2017 23:58:10 +0100
- Subject: [PATCH 2/6] Display user op byte
- Authentication-results: sourceware.org; auth=none
- References: <148719947800.19826.950569475344047705.stgit@host1.jankratochvil.net>
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;
}