[Scummvm-cvs-logs] SF.net SVN: scummvm:[51043] tools/branches/gsoc2010-decompiler/decompiler/ codegen.cpp
pidgeot at users.sourceforge.net
pidgeot at users.sourceforge.net
Tue Jul 20 01:30:58 CEST 2010
Revision: 51043
http://scummvm.svn.sourceforge.net/scummvm/?rev=51043&view=rev
Author: pidgeot
Date: 2010-07-19 23:30:58 +0000 (Mon, 19 Jul 2010)
Log Message:
-----------
Fix off-by-one error during printing of code
Modified Paths:
--------------
tools/branches/gsoc2010-decompiler/decompiler/codegen.cpp
Modified: tools/branches/gsoc2010-decompiler/decompiler/codegen.cpp
===================================================================
--- tools/branches/gsoc2010-decompiler/decompiler/codegen.cpp 2010-07-19 23:13:48 UTC (rev 51042)
+++ tools/branches/gsoc2010-decompiler/decompiler/codegen.cpp 2010-07-19 23:30:58 UTC (rev 51043)
@@ -94,7 +94,7 @@
// Print output
p = GET(entryPoint);
- while (p->_next != NULL) {
+ while (p != NULL) {
for (std::vector<std::string>::iterator it = p->_code.begin(); it != p->_code.end(); ++it)
_output << *it << std::endl;
p = p->_next;
@@ -130,6 +130,7 @@
break;
}
default:
+ std::cout << boost::format("Processing instruction at address %0X\n") % it->_address;
processInst(*it);
}
} while (it++ != _curGroup->_end);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list