[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [6619] Allow disassembling last addresses of the address sp
From: |
Blue Swirl |
Subject: |
[Qemu-devel] [6619] Allow disassembling last addresses of the address space |
Date: |
Fri, 13 Feb 2009 21:44:42 +0000 |
Revision: 6619
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6619
Author: blueswir1
Date: 2009-02-13 21:44:41 +0000 (Fri, 13 Feb 2009)
Log Message:
-----------
Allow disassembling last addresses of the address space
Modified Paths:
--------------
trunk/disas.c
Modified: trunk/disas.c
===================================================================
--- trunk/disas.c 2009-02-12 17:29:32 UTC (rev 6618)
+++ trunk/disas.c 2009-02-13 21:44:41 UTC (rev 6619)
@@ -204,7 +204,7 @@
return;
#endif
- for (pc = code; pc < code + size; pc += count) {
+ for (pc = code; size > 0; pc += count, size -= count) {
fprintf(out, "0x" TARGET_FMT_lx ": ", pc);
count = print_insn(pc, &disasm_info);
#if 0
@@ -276,7 +276,7 @@
(long) code);
return;
#endif
- for (pc = (unsigned long)code; pc < (unsigned long)code + size; pc +=
count) {
+ for (pc = (unsigned long)code; size > 0; pc += count, size -= count) {
fprintf(out, "0x%08lx: ", pc);
#ifdef __arm__
/* since data is included in the code, it is better to
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [6619] Allow disassembling last addresses of the address space,
Blue Swirl <=