From: Blue Swirl <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6619] Allow disassembling last addresses of the address space
Date: Fri, 13 Feb 2009 21:44:42 +0000 [thread overview]
Message-ID: <E1LY5py-0004iI-5V@cvs.savannah.gnu.org> (raw)
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
reply other threads:[~2009-02-13 21:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1LY5py-0004iI-5V@cvs.savannah.gnu.org \
--to=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).