Debugger now actually prevents an undefined opcode from executing (until/unless you single-step it)
This commit is contained in:
parent
c14f919f4f
commit
1e080e720e
3 changed files with 11 additions and 10 deletions
|
|
@ -1631,11 +1631,12 @@ if (DEBUGGER) {
|
|||
*
|
||||
* @this {DebuggerPDP11}
|
||||
* @param {number} opCode
|
||||
* @return {boolean} true if stopping is enabled, false if not
|
||||
*/
|
||||
DebuggerPDP11.prototype.undefinedInstruction = function(opCode)
|
||||
{
|
||||
this.printMessage("undefined opcode " + this.toStrBase(opCode), true, true);
|
||||
this.stopInstruction(); // allow the caller to step over it if they really want a trap generated
|
||||
return this.stopInstruction(); // allow the caller to step over it if they really want a trap generated
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue