diff options
author | Willem Jan Palenstijn | 2016-04-02 00:04:00 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2016-07-02 21:25:53 +0200 |
commit | 08f1727b0813c9e20a2462402f58c4578c5902c8 (patch) | |
tree | e01580fe23784ebde32260f4a4fa4bb6f8ab16ed /engines/sci/engine/vm.h | |
parent | 9f2fff4f6614cd2ab11cf0d236ac553319e94702 (diff) | |
download | scummvm-rg350-08f1727b0813c9e20a2462402f58c4578c5902c8.tar.gz scummvm-rg350-08f1727b0813c9e20a2462402f58c4578c5902c8.tar.bz2 scummvm-rg350-08f1727b0813c9e20a2462402f58c4578c5902c8.zip |
SCI: Improve kernel subfunction logging
ExecStack now stores the kernel call number as well as the subfunction.
This allows kStub and backtraces to log the actual subfunction called.
The kernel call number in ExecStack used to be stored in the
debugSelector field. It now has its own field, to avoid confusion.
Diffstat (limited to 'engines/sci/engine/vm.h')
-rw-r--r-- | engines/sci/engine/vm.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/engines/sci/engine/vm.h b/engines/sci/engine/vm.h index 514bf58b64..dc789b6201 100644 --- a/engines/sci/engine/vm.h +++ b/engines/sci/engine/vm.h @@ -93,16 +93,19 @@ struct ExecStack { SegmentId local_segment; // local variables etc - Selector debugSelector; // The selector which was used to call or -1 if not applicable - int debugExportId; // The exportId which was called or -1 if not applicable - int debugLocalCallOffset; // Local call offset or -1 if not applicable - int debugOrigin; // The stack frame position the call was made from, or -1 if it was the initial call + Selector debugSelector; // The selector which was used to call or -1 if not applicable + int debugExportId; // The exportId which was called or -1 if not applicable + int debugLocalCallOffset; // Local call offset or -1 if not applicable + int debugOrigin; // The stack frame position the call was made from, or -1 if it was the initial call + int debugKernelFunction; // The kernel function called, or -1 if not applicable + int debugKernelSubFunction; // The kernel subfunction called, or -1 if not applicable ExecStackType type; reg_t* getVarPointer(SegManager *segMan) const; ExecStack(reg_t objp_, reg_t sendp_, StackPtr sp_, int argc_, StackPtr argp_, SegmentId localsSegment_, reg32_t pc_, Selector debugSelector_, + int debugKernelFunction_, int debugKernelSubFunction_, int debugExportId_, int debugLocalCallOffset_, int debugOrigin_, ExecStackType type_) { objp = objp_; @@ -118,6 +121,8 @@ struct ExecStack { else local_segment = pc_.getSegment(); debugSelector = debugSelector_; + debugKernelFunction = debugKernelFunction_; + debugKernelSubFunction = debugKernelSubFunction_; debugExportId = debugExportId_; debugLocalCallOffset = debugLocalCallOffset_; debugOrigin = debugOrigin_; |