* [Qemu-devel] [6619] Allow disassembling last addresses of the address space
@ 2009-02-13 21:44 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2009-02-13 21:44 UTC (permalink / raw)
To: qemu-devel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-13 21:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-13 21:44 [Qemu-devel] [6619] Allow disassembling last addresses of the address space Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).