mirror of https://github.com/stella-emu/stella.git
slightly better parser messages for breakifs and failed deletes.
This commit is contained in:
parent
3cc42b1dc5
commit
d702829ed3
|
@ -122,7 +122,7 @@ string DebuggerParser::run(const string& command)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return "No such command (try \"help\")";
|
return red("No such command (try \"help\")");
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
@ -914,7 +914,10 @@ void DebuggerParser::executeDefine()
|
||||||
// "delbreakif"
|
// "delbreakif"
|
||||||
void DebuggerParser::executeDelbreakif()
|
void DebuggerParser::executeDelbreakif()
|
||||||
{
|
{
|
||||||
debugger.cpuDebug().m6502().delCondBreak(args[0]);
|
if (debugger.cpuDebug().m6502().delCondBreak(args[0]))
|
||||||
|
commandResult << "removed breakif " << Base::toString(args[0]);
|
||||||
|
else
|
||||||
|
commandResult << red("no such breakif");
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
@ -942,7 +945,7 @@ void DebuggerParser::executeDeltrap()
|
||||||
commandResult << "removed trap " << Base::toString(index);
|
commandResult << "removed trap " << Base::toString(index);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
commandResult << "no such trap";
|
commandResult << red("no such trap");
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
@ -956,7 +959,7 @@ void DebuggerParser::executeDelwatch()
|
||||||
commandResult << "removed watch";
|
commandResult << "removed watch";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
commandResult << "no such watch";
|
commandResult << red("no such watch");
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
Loading…
Reference in New Issue