qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 01/48] arm-dis debug helper


From: Riku Voipio
Subject: [Qemu-devel] [PATCH 01/48] arm-dis debug helper
Date: Fri, 26 Mar 2010 16:06:24 +0000

From: Juha Riihimäki <address@hidden>

modified the arm disassembler to include the opcode binary representation along
with the symbolic disassembly.

Signed-Off-By: Riku Voipio <address@hidden>
Signed-Off-By: Juha Riihimäki <address@hidden>
---
 arm-dis.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/arm-dis.c b/arm-dis.c
index 4fb899e..2b37c24 100644
--- a/arm-dis.c
+++ b/arm-dis.c
@@ -4101,8 +4101,14 @@ print_insn_arm (bfd_vma pc, struct disassemble_info 
*info)
        In such cases, we can ignore the pc when computing
        addresses, since the addend is not currently pc-relative.  */
     pc = 0;
-
-  printer (pc, info, given);
+    if (size == 2) {
+        info->fprintf_func(info->stream, "[%04lx]      ",
+                           ((unsigned long)given) & 0xffffffff);
+    } else {
+        info->fprintf_func(info->stream, "[%08lx]  ",
+                           ((unsigned long)given) & 0xffffffff);
+    }
+    printer (pc, info, given);
 
   if (is_thumb)
     {
-- 
1.6.5





reply via email to

[Prev in Thread] Current Thread [Next in Thread]