[Scummvm-cvs-logs] SF.net SVN: scummvm:[49293] scummvm/trunk/engines/sci/engine/vm.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Fri May 28 14:37:55 CEST 2010
Revision: 49293
http://scummvm.svn.sourceforge.net/scummvm/?rev=49293&view=rev
Author: thebluegr
Date: 2010-05-28 12:37:54 +0000 (Fri, 28 May 2010)
Log Message:
-----------
Added some more info when severe script errors occur
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/vm.cpp
Modified: scummvm/trunk/engines/sci/engine/vm.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/vm.cpp 2010-05-28 12:36:47 UTC (rev 49292)
+++ scummvm/trunk/engines/sci/engine/vm.cpp 2010-05-28 12:37:54 UTC (rev 49293)
@@ -832,12 +832,14 @@
#ifndef DISABLE_VALIDATIONS
if (scriptState.xs->sp < scriptState.xs->fp)
- error("run_vm(): stack underflow");
+ error("run_vm(): stack underflow, sp: %04x:%04x, fp: %04x:%04x",
+ PRINT_REG(*scriptState.xs->sp), PRINT_REG(*scriptState.xs->fp));
scriptState.variables_max[VAR_TEMP] = scriptState.xs->sp - scriptState.xs->fp;
if (scriptState.xs->addr.pc.offset >= code_buf_size)
- error("run_vm(): program counter gone astray");
+ error("run_vm(): program counter gone astray, addr: %d, code buffer size: %d",
+ scriptState.xs->addr.pc.offset, code_buf_size);
#endif
// Get opcode
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