From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LY5q4-0007wk-Lo for qemu-devel@nongnu.org; Fri, 13 Feb 2009 16:44:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LY5q4-0007wP-7R for qemu-devel@nongnu.org; Fri, 13 Feb 2009 16:44:48 -0500 Received: from [199.232.76.173] (port=54771 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LY5q4-0007wK-1k for qemu-devel@nongnu.org; Fri, 13 Feb 2009 16:44:48 -0500 Received: from savannah.gnu.org ([199.232.41.3]:33080 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LY5q3-0002Z6-F9 for qemu-devel@nongnu.org; Fri, 13 Feb 2009 16:44:47 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LY5py-0004iM-Dj for qemu-devel@nongnu.org; Fri, 13 Feb 2009 21:44:42 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LY5py-0004iI-5V for qemu-devel@nongnu.org; Fri, 13 Feb 2009 21:44:42 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Fri, 13 Feb 2009 21:44:42 +0000 Subject: [Qemu-devel] [6619] Allow disassembling last addresses of the address space Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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