57{
58 UINT64 BaseAddress =
NULL;
60 string PathToPdb;
61
62 if (CommandTokens.size() == 1)
63 {
64 ShowMessages("incorrect use of the '%s'\n\n",
67 return;
68 }
69
71 {
72
73
74
75 if (CommandTokens.size() != 2)
76 {
77 ShowMessages("incorrect use of the '%s'\n\n",
80 return;
81 }
82
83
84
85
87 }
89 {
90
91
92
93 if (CommandTokens.size() != 2)
94 {
95 ShowMessages("incorrect use of the '%s'\n\n",
98 return;
99 }
100
101
102
103
105 {
107 }
109 {
111 }
112 }
114 {
115
116
117
118 if (CommandTokens.size() != 2 && CommandTokens.size() != 4)
119 {
120 ShowMessages("incorrect use of the '%s'\n\n",
123 return;
124 }
125
126
127
128
129 if (CommandTokens.size() == 4)
130 {
132 {
134 {
135
136
137
138 ShowMessages("err, couldn't resolve error at '%s'\n\n",
141 return;
142 }
143 }
144 else
145 {
146 ShowMessages("incorrect use of the '%s'\n\n",
149 return;
150 }
151 }
152
153
154
155
157 {
158
159
160
162 }
163 else
164 {
165
166
167
168 if (UserProcessId == NULL)
169 {
170
171
172
173
174
175
177 {
179 }
180 else
181 {
182 UserProcessId = GetCurrentProcessId();
183 }
184 }
185
186
187
188
190 {
191 ShowMessages("symbol table updated successfully\n");
192 }
193 }
194 }
196 {
197
198
199
200 if (CommandTokens.size() != 2)
201 {
202 ShowMessages("incorrect use of the '%s'\n\n",
205 return;
206 }
207
208
209
210
211
213
214
215
216
217
218 }
220 {
221
222
223
224 if (CommandTokens.size() < 6)
225 {
226 ShowMessages("incorrect use of the '%s'\n\n",
229 return;
230 }
231
233 {
235 {
236 ShowMessages("please add a valid hex address to be used as the base address\n\n");
238 return;
239 }
240
241
242
243
245 {
246 ShowMessages("incorrect use of the '%s'\n\n",
249 return;
250 }
251
252
253
254
256
257
258
259
261 {
262 ShowMessages("pdb file not found\n");
263 return;
264 }
265
266 ShowMessages("loading module symbol at '%s'\n", PathToPdb.c_str());
267
268
269
270
271
273 }
274 else
275 {
276 ShowMessages("incorrect use of the '%s'\n\n",
279 return;
280 }
281 }
282 else
283 {
284 ShowMessages("unknown parameter at '%s'\n\n",
287 return;
288 }
289}
BOOLEAN g_IsSerialConnectedToRemoteDebuggee
Shows if the debugger was connected to remote debuggee over (A remote guest).
Definition globals.h:253
ACTIVE_DEBUGGING_PROCESS g_ActiveProcessDebuggingState
State of active debugging thread.
Definition globals.h:372
std::string GetCaseSensitiveStringFromCommandToken(CommandToken TargetToken)
Get case sensitive string from command token.
Definition common.cpp:467
BOOLEAN CompareLowerCaseStrings(CommandToken TargetToken, const CHAR *StringToCompare)
Compare lower case strings.
Definition common.cpp:503
BOOLEAN ConvertTokenToUInt64(CommandToken TargetToken, PUINT64 Result)
add ` between 64 bit values and convert them to string
Definition common.cpp:447
BOOLEAN ConvertTokenToUInt32(CommandToken TargetToken, PUINT32 Result)
check and convert command token to a 32 bit unsigned integer
Definition common.cpp:546
BOOLEAN IsFileExistA(const CHAR *FileName)
check if a file exist or not (ASCII)
Definition common.cpp:740
NULL()
Definition test-case-generator.py:530
UINT32 ScriptEngineLoadFileSymbolWrapper(UINT64 BaseAddress, const CHAR *PdbFileName, const CHAR *CustomModuleName)
ScriptEngineLoadFileSymbol wrapper.
Definition script-engine-wrapper.cpp:68
UINT32 ScriptEngineUnloadAllSymbolsWrapper()
ScriptEngineUnloadAllSymbols wrapper.
Definition script-engine-wrapper.cpp:92
VOID CommandSymHelp()
help of the .sym command
Definition sym.cpp:26
BOOLEAN SymbolLoadOrDownloadSymbols(BOOLEAN IsDownload, BOOLEAN SilentLoad)
Load or download symbols.
Definition symbol.cpp:298
BOOLEAN SymbolReloadSymbolTableInDebuggerMode(UINT32 ProcessId)
Update the symbol table from remote debuggee in debugger mode.
Definition symbol.cpp:1274
BOOLEAN SymbolLocalReload(UINT32 UserProcessId)
Locally reload the symbol table.
Definition symbol.cpp:49
VOID SymbolBuildAndShowSymbolTable()
Build and show symbol table details.
Definition symbol.cpp:263