Add ADDLOG, which adds a message to the logfile. Convenient when debugging and retracing the resulting log afterwards.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3840
This commit is contained in:
parent
49875ee505
commit
5e07c501b6
1 changed files with 8 additions and 1 deletions
|
@ -1037,6 +1037,11 @@ bool ParseCommand(char* str) {
|
|||
return true;
|
||||
};
|
||||
|
||||
if (command == "ADDLOG") {
|
||||
if(found && *found) DEBUG_ShowMsg("NOTICE: %s\n",found);
|
||||
return true;
|
||||
};
|
||||
|
||||
if (command == "SR") { // Set register value
|
||||
DEBUG_ShowMsg("DEBUG: Set Register %s.\n",(ChangeRegister(found)?"success":"failure"));
|
||||
return true;
|
||||
|
@ -1304,7 +1309,7 @@ bool ParseCommand(char* str) {
|
|||
DEBUG_ShowMsg("LOG [num] - Write cpu log file.\n");
|
||||
DEBUG_ShowMsg("LOGS/LOGL [num] - Write short/long cpu log file.\n");
|
||||
DEBUG_ShowMsg("HEAVYLOG - Enable/Disable automatic cpu log when dosbox exits.\n");
|
||||
DEBUG_ShowMsg("ZEROPROTECT - Enable/Disable zero code execution detecion.\n");
|
||||
DEBUG_ShowMsg("ZEROPROTECT - Enable/Disable zero code execution detection.\n");
|
||||
#endif
|
||||
DEBUG_ShowMsg("SR [reg] [value] - Set register value.\n");
|
||||
DEBUG_ShowMsg("SM [seg]:[off] [val] [.]..- Set memory with following values.\n");
|
||||
|
@ -1313,6 +1318,8 @@ bool ParseCommand(char* str) {
|
|||
DEBUG_ShowMsg("SV [filename] - Save var list in file.\n");
|
||||
DEBUG_ShowMsg("LV [filename] - Load var list from file.\n");
|
||||
|
||||
DEBUG_ShowMsg("ADDLOG [message] - Add message to the log file.\n");
|
||||
|
||||
DEBUG_ShowMsg("MEMDUMP [seg]:[off] [len] - Write memory to file memdump.txt.\n");
|
||||
DEBUG_ShowMsg("MEMDUMPBIN [s]:[o] [len] - Write memory to file memdump.bin.\n");
|
||||
DEBUG_ShowMsg("SELINFO [segName] - Show selector info.\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue