diff options
author | Jonathan Gray | 2003-04-20 08:04:27 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-04-20 08:04:27 +0000 |
commit | f1353701f80095ecb1e0a1c3efa0de031045c571 (patch) | |
tree | 44ba0a3bf0603274a819fd2e393565b9a7e2d925 /scumm/debugger.cpp | |
parent | c597d0d4d6c989dea6631365466c2b32d394bb6e (diff) | |
download | scummvm-rg350-f1353701f80095ecb1e0a1c3efa0de031045c571.tar.gz scummvm-rg350-f1353701f80095ecb1e0a1c3efa0de031045c571.tar.bz2 scummvm-rg350-f1353701f80095ecb1e0a1c3efa0de031045c571.zip |
add stack tracing option to debugger
svn-id: r7025
Diffstat (limited to 'scumm/debugger.cpp')
-rw-r--r-- | scumm/debugger.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp index 8edbc66ac7..5cedd84902 100644 --- a/scumm/debugger.cpp +++ b/scumm/debugger.cpp @@ -334,6 +334,11 @@ bool ScummDebugger::Cmd_Show(int argc, const char **argv) { if (!strcmp(argv[1], "hex")) { _s->_hexdumpScripts = true; Debug_Printf("Script hex dumping on\n"); + } else if (!strncmp(argv[1], "sta", 3)) { + _s->_showStack = true; + Debug_Printf("Stack tracing on\n"); + } else { + Debug_Printf("Unknown show parameter '%s'\n", argv[1]); } return true; } @@ -348,6 +353,11 @@ bool ScummDebugger::Cmd_Hide(int argc, const char **argv) { if (!strcmp(argv[1], "hex")) { _s->_hexdumpScripts = false; Debug_Printf("Script hex dumping off\n"); + } else if (!strncmp(argv[1], "sta", 3)) { + _s->_showStack = false; + Debug_Printf("Stack tracing off\n"); + } else { + Debug_Printf("Unknown hide parameter '%s'\n", argv[1]); } return true; } |