25 #include "gui/debugger.h" 26 #include "sci/engine/vm.h" 45 void attach(
const char *entry =
nullptr)
override;
48 void preEnter()
override;
49 void postEnter()
override;
52 bool cmdHelp(
int argc,
const char **argv);
54 bool cmdOpcodes(
int argc,
const char **argv);
55 bool cmdSelector(
int argc,
const char **argv);
56 bool cmdSelectors(
int argc,
const char **argv);
57 bool cmdKernelFunctions(
int argc,
const char **argv);
58 bool cmdKernelCall(
int argc,
const char **argv);
59 bool cmdClassTable(
int argc,
const char **argv);
61 bool cmdSuffixes(
int argc,
const char **argv);
62 bool cmdParseGrammar(
int argc,
const char **argv);
63 bool cmdParserNodes(
int argc,
const char **argv);
64 bool cmdParserWords(
int argc,
const char **argv);
65 bool cmdSentenceFragments(
int argc,
const char **argv);
66 bool cmdParse(
int argc,
const char **argv);
67 bool cmdSetParseNodes(
int argc,
const char **argv);
68 bool cmdSaid(
int argc,
const char **argv);
70 bool cmdDiskDump(
int argc,
const char **argv);
71 void cmdDiskDumpWorker(ResourceType resourceType,
int resourceNumber, uint32 resourceTuple);
72 bool cmdHexDump(
int argc,
const char **argv);
73 bool cmdResourceId(
int argc,
const char **argv);
74 bool cmdResourceInfo(
int argc,
const char **argv);
75 bool cmdResourceTypes(
int argc,
const char **argv);
76 bool cmdList(
int argc,
const char **argv);
77 bool cmdResourceIntegrityDump(
int argc,
const char **argv);
78 bool cmdAllocList(
int argc,
const char **argv);
79 bool cmdHexgrep(
int argc,
const char **argv);
80 bool cmdVerifyScripts(
int argc,
const char **argv);
82 bool cmdSaveGame(
int argc,
const char **argv);
83 bool cmdRestoreGame(
int argc,
const char **argv);
84 bool cmdRestartGame(
int argc,
const char **argv);
85 bool cmdGetVersion(
int argc,
const char **argv);
86 bool cmdRoomNumber(
int argc,
const char **argv);
87 bool cmdQuit(
int argc,
const char **argv);
88 bool cmdListSaves(
int argc,
const char **argv);
90 bool cmdShowMap(
int argc,
const char **argv);
92 bool cmdSetPalette(
int argc,
const char **argv);
93 bool cmdDrawPic(
int argc,
const char **argv);
94 bool cmdDrawCel(
int argc,
const char **argv);
95 bool cmdUndither(
int argc,
const char **argv);
96 bool cmdPicVisualize(
int argc,
const char **argv);
97 bool cmdPlayVideo(
int argc,
const char **argv);
98 bool cmdAnimateList(
int argc,
const char **argv);
99 bool cmdWindowList(
int argc,
const char **argv);
100 bool cmdPlaneList(
int argc,
const char **argv);
101 bool cmdVisiblePlaneList(
int argc,
const char **argv);
102 bool cmdPlaneItemList(
int argc,
const char **argv);
103 bool cmdVisiblePlaneItemList(
int argc,
const char **argv);
104 bool cmdSavedBits(
int argc,
const char **argv);
105 bool cmdShowSavedBits(
int argc,
const char **argv);
107 bool cmdPrintSegmentTable(
int argc,
const char **argv);
108 bool cmdSegmentInfo(
int argc,
const char **argv);
109 bool cmdKillSegment(
int argc,
const char **argv);
111 bool cmdGCInvoke(
int argc,
const char **argv);
112 bool cmdGCObjects(
int argc,
const char **argv);
113 bool cmdGCShowReachable(
int argc,
const char **argv);
114 bool cmdGCShowFreeable(
int argc,
const char **argv);
115 bool cmdGCNormalize(
int argc,
const char **argv);
117 bool cmdSongLib(
int argc,
const char **argv);
118 bool cmdSongInfo(
int argc,
const char **argv);
119 bool cmdIsSample(
int argc,
const char **argv);
120 bool cmdStartSound(
int argc,
const char **argv);
121 bool cmdToggleSound(
int argc,
const char **argv);
122 bool cmdStopAllSounds(
int argc,
const char **argv);
123 bool cmdSfx01Header(
int argc,
const char **argv);
124 bool cmdSfx01Track(
int argc,
const char **argv);
125 bool cmdShowInstruments(
int argc,
const char **argv);
126 bool cmdMapInstrument(
int argc,
const char **argv);
127 bool cmdAudioList(
int argc,
const char **argv);
128 bool cmdAudioDump(
int argc,
const char **argv);
130 bool cmdAddresses(
int argc,
const char **argv);
131 bool cmdRegisters(
int argc,
const char **argv);
132 bool cmdDissectScript(
int argc,
const char **argv);
133 bool cmdBacktrace(
int argc,
const char **argv);
134 bool cmdTrace(
int argc,
const char **argv);
135 bool cmdStepOver(
int argc,
const char **argv);
136 bool cmdStepEvent(
int argc,
const char **argv);
137 bool cmdStepRet(
int argc,
const char **argv);
138 bool cmdStepGlobal(
int argc,
const char **argv);
139 bool cmdStepCallk(
int argc,
const char **argv);
140 bool cmdDisassemble(
int argc,
const char **argv);
141 bool cmdDisassembleAddress(
int argc,
const char **argv);
142 bool cmdFindKernelFunctionCall(
int argc,
const char **argv);
143 bool cmdSend(
int argc,
const char **argv);
144 bool cmdGo(
int argc,
const char **argv);
145 bool cmdLogKernel(
int argc,
const char **argv);
146 bool cmdMapVocab994(
int argc,
const char **argv);
147 bool cmdGameFlagsInit(
int argc,
const char **argv);
148 bool cmdGameFlagsTest(
int argc,
const char **argv);
149 bool cmdGameFlagsSet(
int argc,
const char **argv);
150 bool cmdGameFlagsClear(
int argc,
const char **argv);
152 bool cmdBreakpointList(
int argc,
const char **argv);
153 bool cmdBreakpointDelete(
int argc,
const char **argv);
154 bool cmdBreakpointAction(
int argc,
const char **argv);
155 bool cmdBreakpointMethod(
int argc,
const char **argv);
156 bool cmdBreakpointRead(
int argc,
const char **argv);
157 bool cmdBreakpointWrite(
int argc,
const char **argv);
158 bool cmdBreakpointKernel(
int argc,
const char **argv);
159 bool cmdBreakpointFunction(
int argc,
const char **argv);
160 bool cmdBreakpointAddress(
int argc,
const char **argv);
162 bool cmdScriptSteps(
int argc,
const char **argv);
163 bool cmdScriptObjects(
int argc,
const char **argv);
164 bool cmdScriptStrings(
int argc,
const char **argv);
165 bool cmdScriptSaid(
int argc,
const char **argv);
166 bool cmdVMVarlist(
int argc,
const char **argv);
167 bool cmdVMVars(
int argc,
const char **argv);
168 bool cmdLocalVars(
int argc,
const char **argv);
169 bool cmdStack(
int argc,
const char **argv);
170 bool cmdValueType(
int argc,
const char **argv);
171 bool cmdViewListNode(
int argc,
const char **argv);
172 bool cmdViewReference(
int argc,
const char **argv);
173 bool cmdDumpReference(
int argc,
const char **argv);
174 bool cmdViewObject(
int argc,
const char **argv);
175 bool cmdViewActiveObject(
int argc,
const char **argv);
176 bool cmdViewAccumulatorObject(
int argc,
const char **argv);
178 bool cmdSpeedThrottle(
int argc,
const char **argv);
180 bool parseInteger(
const char *argument,
int &result);
181 bool parseResourceNumber36(
const char *userParameter, uint16 &resourceNumber, uint32 &resourceTuple);
183 void printBasicVarInfo(
reg_t variable);
185 bool segmentInfo(
int nr);
186 void printList(
reg_t addr);
187 void printList(
const List &list);
188 int printNode(
reg_t addr);
189 void hexDumpReg(
const reg_t *data,
int len,
int regsPerLine = 4,
int startOffset = 0,
bool isArray =
false);
190 void printOffsets(
int scriptNr, uint16 showType);
198 void printKernelCallsFound(
int kernelFuncNum,
bool showFoundScripts);
200 void printBreakpoint(
int index,
const Breakpoint &bp);
201 void printReference(
reg_t reg,
reg_t reg_end = NULL_REG);
203 void printArray(
reg_t reg);
204 void printBitmap(
reg_t reg);
209 enum GameFlagsOperation {
214 bool processGameFlagsOperation(GameFlagsOperation operation,
int argc,
const char **argv);
219 int _videoFrameDelay;
220 uint16 _gameFlagsGlobal;
Definition: debugger.h:41
Definition: segment.h:202
void attach(const char *entry=nullptr) override
Definition: vm_types.h:39