vbox的更動 35696 路徑 trunk/src/VBox/Debugger/DBGCCommands.cpp
- 時間撮記:
- 2011-1-24 下午06:03:33 (14 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Debugger/DBGCCommands.cpp
r35628 r35696 47 47 * Internal Functions * 48 48 *******************************************************************************/ 49 static DECLCALLBACK(int) dbgcCmdHelp(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);50 static DECLCALLBACK(int) dbgcCmdQuit(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);51 static DECLCALLBACK(int) dbgcCmdStop(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);52 static DECLCALLBACK(int) dbgcCmdDetect(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);53 static DECLCALLBACK(int) dbgcCmdCpu(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);54 static DECLCALLBACK(int) dbgcCmdInfo(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);55 static DECLCALLBACK(int) dbgcCmdLog(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);56 static DECLCALLBACK(int) dbgcCmdLogDest(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);57 static DECLCALLBACK(int) dbgcCmdLogFlags(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);58 static DECLCALLBACK(int) dbgcCmdFormat(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);59 static DECLCALLBACK(int) dbgcCmdLoadImage(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);60 static DECLCALLBACK(int) dbgcCmdLoadMap(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);61 static DECLCALLBACK(int) dbgcCmdLoadSeg(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);62 static DECLCALLBACK(int) dbgcCmdLoadSyms(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);63 static DECLCALLBACK(int) dbgcCmdSet(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);64 static DECLCALLBACK(int) dbgcCmdUnset(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);65 static DECLCALLBACK(int) dbgcCmdLoadVars(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);66 static DECLCALLBACK(int) dbgcCmdShowVars(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);67 static DECLCALLBACK(int) dbgcCmdLoadPlugIn(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);68 static DECLCALLBACK(int) dbgcCmdUnloadPlugIn(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);69 static DECLCALLBACK(int) dbgcCmdShowPlugIns(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);70 static DECLCALLBACK(int) dbgcCmdHarakiri(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);71 static DECLCALLBACK(int) dbgcCmdEcho(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);72 static DECLCALLBACK(int) dbgcCmdRunScript(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);73 static DECLCALLBACK(int) dbgcCmdWriteCore(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult);49 static DECLCALLBACK(int) dbgcCmdHelp(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 50 static DECLCALLBACK(int) dbgcCmdQuit(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 51 static DECLCALLBACK(int) dbgcCmdStop(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 52 static DECLCALLBACK(int) dbgcCmdDetect(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 53 static DECLCALLBACK(int) dbgcCmdCpu(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 54 static DECLCALLBACK(int) dbgcCmdInfo(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 55 static DECLCALLBACK(int) dbgcCmdLog(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 56 static DECLCALLBACK(int) dbgcCmdLogDest(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 57 static DECLCALLBACK(int) dbgcCmdLogFlags(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 58 static DECLCALLBACK(int) dbgcCmdFormat(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 59 static DECLCALLBACK(int) dbgcCmdLoadImage(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 60 static DECLCALLBACK(int) dbgcCmdLoadMap(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 61 static DECLCALLBACK(int) dbgcCmdLoadSeg(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 62 static DECLCALLBACK(int) dbgcCmdLoadSyms(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 63 static DECLCALLBACK(int) dbgcCmdSet(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 64 static DECLCALLBACK(int) dbgcCmdUnset(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 65 static DECLCALLBACK(int) dbgcCmdLoadVars(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 66 static DECLCALLBACK(int) dbgcCmdShowVars(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 67 static DECLCALLBACK(int) dbgcCmdLoadPlugIn(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 68 static DECLCALLBACK(int) dbgcCmdUnloadPlugIn(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 69 static DECLCALLBACK(int) dbgcCmdShowPlugIns(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 70 static DECLCALLBACK(int) dbgcCmdHarakiri(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 71 static DECLCALLBACK(int) dbgcCmdEcho(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 72 static DECLCALLBACK(int) dbgcCmdRunScript(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 73 static DECLCALLBACK(int) dbgcCmdWriteCore(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs); 74 74 75 75 … … 222 222 const DBGCCMD g_aCmds[] = 223 223 { 224 /* pszCmd, cArgsMin, cArgsMax, paArgDescs, cArgDescs, pResultDesc,fFlags,pfnHandler pszSyntax, ....pszDescription */225 { "bye", 0, 0, NULL, 0, NULL, 0,dbgcCmdQuit, "", "Exits the debugger." },226 { "cpu", 0, 1, &g_aArgCpu[0], RT_ELEMENTS(g_aArgCpu), NULL, 0,dbgcCmdCpu, "[idCpu]", "If no argument, display the current CPU, else change to the specified CPU." },227 { "echo", 1, ~0, &g_aArgMultiStr[0], RT_ELEMENTS(g_aArgMultiStr), NULL, 0,dbgcCmdEcho, "<str1> [str2..[strN]]", "Displays the strings separated by one blank space and the last one followed by a newline." },228 { "exit", 0, 0, NULL, 0, NULL, 0,dbgcCmdQuit, "", "Exits the debugger." },229 { "format", 1, 1, &g_aArgAny[0], RT_ELEMENTS(g_aArgAny), NULL, 0,dbgcCmdFormat, "", "Evaluates an expression and formats it." },230 { "detect", 0, 0, NULL, 0, NULL, 0,dbgcCmdDetect, "", "Detects or re-detects the guest os and starts the OS specific digger." },231 { "harakiri", 0, 0, NULL, 0, NULL, 0,dbgcCmdHarakiri, "", "Kills debugger process." },232 { "help", 0, ~0, &g_aArgHelp[0], RT_ELEMENTS(g_aArgHelp), NULL, 0,dbgcCmdHelp, "[cmd/op [..]]", "Display help. For help about info items try 'info help'." },233 { "info", 1, 2, &g_aArgInfo[0], RT_ELEMENTS(g_aArgInfo), NULL, 0,dbgcCmdInfo, "<info> [args]", "Display info register in the DBGF. For a list of info items try 'info help'." },234 { "loadimage", 2, 3, &g_aArgLoadImage[0], RT_ELEMENTS(g_aArgLoadImage), NULL, 0,dbgcCmdLoadImage, "<filename> <address> [name]",235 236 237 { "loadmap", 2, 5, &g_aArgLoadMap[0], RT_ELEMENTS(g_aArgLoadMap), NULL, 0,dbgcCmdLoadMap, "<filename> <address> [name] [subtrahend] [seg]",238 239 240 241 { "loadplugin", 1, 1, &g_aArgPlugIn[0], RT_ELEMENTS(g_aArgPlugIn), NULL, 0,dbgcCmdLoadPlugIn,"<plugin1> [plugin2..N]", "Loads one or more plugins" },242 { "loadseg", 3, 4, &g_aArgLoadSeg[0], RT_ELEMENTS(g_aArgLoadSeg), NULL, 0,dbgcCmdLoadSeg, "<filename> <address> <seg> [name]",243 244 245 { "loadsyms", 1, 5, &g_aArgLoadSyms[0], RT_ELEMENTS(g_aArgLoadSyms), NULL, 0,dbgcCmdLoadSyms, "<filename> [delta] [module] [module address]", "Loads symbols from a text file. Optionally giving a delta and a module." },246 { "loadvars", 1, 1, &g_aArgFilename[0], RT_ELEMENTS(g_aArgFilename), NULL, 0,dbgcCmdLoadVars, "<filename>", "Load variables from file. One per line, same as the args to the set command." },247 { "log", 1, 1, &g_aArgLog[0], RT_ELEMENTS(g_aArgLog), NULL, 0,dbgcCmdLog, "<group string>", "Modifies the logging group settings (VBOX_LOG)" },248 { "logdest", 1, 1, &g_aArgLogDest[0], RT_ELEMENTS(g_aArgLogDest), NULL, 0,dbgcCmdLogDest, "<dest string>", "Modifies the logging destination (VBOX_LOG_DEST)." },249 { "logflags", 1, 1, &g_aArgLogFlags[0], RT_ELEMENTS(g_aArgLogFlags), NULL, 0,dbgcCmdLogFlags, "<flags string>", "Modifies the logging flags (VBOX_LOG_FLAGS)." },250 { "quit", 0, 0, NULL, 0, NULL, 0,dbgcCmdQuit, "", "Exits the debugger." },251 { "runscript", 1, 1, &g_aArgFilename[0], RT_ELEMENTS(g_aArgFilename), NULL, 0,dbgcCmdRunScript, "<filename>", "Runs the command listed in the script. Lines starting with '#' "252 253 { "set", 2, 2, &g_aArgSet[0], RT_ELEMENTS(g_aArgSet), NULL, 0,dbgcCmdSet, "<var> <value>", "Sets a global variable." },254 { "showplugins",0, 0, NULL, 0, NULL, 0,dbgcCmdShowPlugIns,"", "List loaded plugins." },255 { "showvars", 0, 0, NULL, 0, NULL, 0,dbgcCmdShowVars, "", "List all the defined variables." },256 { "stop", 0, 0, NULL, 0, NULL, 0,dbgcCmdStop, "", "Stop execution." },257 { "unloadplugin", 1, ~0, &g_aArgPlugIn[0], RT_ELEMENTS(g_aArgPlugIn), NULL, 0,dbgcCmdUnloadPlugIn, "<plugin1> [plugin2..N]", "Unloads one or more plugins." },258 { "unset", 1, ~0, &g_aArgMultiStr[0], RT_ELEMENTS(g_aArgMultiStr), NULL, 0,dbgcCmdUnset, "<var1> [var1..[varN]]", "Unsets (delete) one or more global variables." },259 { "writecore", 1, 1, &g_aArgWriteCore[0], RT_ELEMENTS(g_aArgWriteCore), NULL, 0,dbgcCmdWriteCore, "<filename>", "Write core to file." },224 /* pszCmd, cArgsMin, cArgsMax, paArgDescs, cArgDescs, fFlags, pfnHandler pszSyntax, ....pszDescription */ 225 { "bye", 0, 0, NULL, 0, 0, dbgcCmdQuit, "", "Exits the debugger." }, 226 { "cpu", 0, 1, &g_aArgCpu[0], RT_ELEMENTS(g_aArgCpu), 0, dbgcCmdCpu, "[idCpu]", "If no argument, display the current CPU, else change to the specified CPU." }, 227 { "echo", 1, ~0, &g_aArgMultiStr[0], RT_ELEMENTS(g_aArgMultiStr), 0, dbgcCmdEcho, "<str1> [str2..[strN]]", "Displays the strings separated by one blank space and the last one followed by a newline." }, 228 { "exit", 0, 0, NULL, 0, 0, dbgcCmdQuit, "", "Exits the debugger." }, 229 { "format", 1, 1, &g_aArgAny[0], RT_ELEMENTS(g_aArgAny), 0, dbgcCmdFormat, "", "Evaluates an expression and formats it." }, 230 { "detect", 0, 0, NULL, 0, 0, dbgcCmdDetect, "", "Detects or re-detects the guest os and starts the OS specific digger." }, 231 { "harakiri", 0, 0, NULL, 0, 0, dbgcCmdHarakiri, "", "Kills debugger process." }, 232 { "help", 0, ~0, &g_aArgHelp[0], RT_ELEMENTS(g_aArgHelp), 0, dbgcCmdHelp, "[cmd/op [..]]", "Display help. For help about info items try 'info help'." }, 233 { "info", 1, 2, &g_aArgInfo[0], RT_ELEMENTS(g_aArgInfo), 0, dbgcCmdInfo, "<info> [args]", "Display info register in the DBGF. For a list of info items try 'info help'." }, 234 { "loadimage", 2, 3, &g_aArgLoadImage[0], RT_ELEMENTS(g_aArgLoadImage), 0, dbgcCmdLoadImage, "<filename> <address> [name]", 235 "Loads the symbols of an executable image at the specified address. " 236 /*"Optionally giving the module a name other than the file name stem."*/ }, /** @todo implement line breaks */ 237 { "loadmap", 2, 5, &g_aArgLoadMap[0], RT_ELEMENTS(g_aArgLoadMap), 0, dbgcCmdLoadMap, "<filename> <address> [name] [subtrahend] [seg]", 238 "Loads the symbols from a map file, usually at a specified address. " 239 /*"Optionally giving the module a name other than the file name stem " 240 "and a subtrahend to subtract from the addresses."*/ }, 241 { "loadplugin", 1, 1, &g_aArgPlugIn[0], RT_ELEMENTS(g_aArgPlugIn), 0, dbgcCmdLoadPlugIn,"<plugin1> [plugin2..N]", "Loads one or more plugins" }, 242 { "loadseg", 3, 4, &g_aArgLoadSeg[0], RT_ELEMENTS(g_aArgLoadSeg), 0, dbgcCmdLoadSeg, "<filename> <address> <seg> [name]", 243 "Loads the symbols of a segment in the executable image at the specified address. " 244 /*"Optionally giving the module a name other than the file name stem."*/ }, 245 { "loadsyms", 1, 5, &g_aArgLoadSyms[0], RT_ELEMENTS(g_aArgLoadSyms), 0, dbgcCmdLoadSyms, "<filename> [delta] [module] [module address]", "Loads symbols from a text file. Optionally giving a delta and a module." }, 246 { "loadvars", 1, 1, &g_aArgFilename[0], RT_ELEMENTS(g_aArgFilename), 0, dbgcCmdLoadVars, "<filename>", "Load variables from file. One per line, same as the args to the set command." }, 247 { "log", 1, 1, &g_aArgLog[0], RT_ELEMENTS(g_aArgLog), 0, dbgcCmdLog, "<group string>", "Modifies the logging group settings (VBOX_LOG)" }, 248 { "logdest", 1, 1, &g_aArgLogDest[0], RT_ELEMENTS(g_aArgLogDest), 0, dbgcCmdLogDest, "<dest string>", "Modifies the logging destination (VBOX_LOG_DEST)." }, 249 { "logflags", 1, 1, &g_aArgLogFlags[0], RT_ELEMENTS(g_aArgLogFlags), 0, dbgcCmdLogFlags, "<flags string>", "Modifies the logging flags (VBOX_LOG_FLAGS)." }, 250 { "quit", 0, 0, NULL, 0, 0, dbgcCmdQuit, "", "Exits the debugger." }, 251 { "runscript", 1, 1, &g_aArgFilename[0], RT_ELEMENTS(g_aArgFilename), 0, dbgcCmdRunScript, "<filename>", "Runs the command listed in the script. Lines starting with '#' " 252 "(after removing blanks) are comment. blank lines are ignored. Stops on failure." }, 253 { "set", 2, 2, &g_aArgSet[0], RT_ELEMENTS(g_aArgSet), 0, dbgcCmdSet, "<var> <value>", "Sets a global variable." }, 254 { "showplugins",0, 0, NULL, 0, 0, dbgcCmdShowPlugIns,"", "List loaded plugins." }, 255 { "showvars", 0, 0, NULL, 0, 0, dbgcCmdShowVars, "", "List all the defined variables." }, 256 { "stop", 0, 0, NULL, 0, 0, dbgcCmdStop, "", "Stop execution." }, 257 { "unloadplugin", 1, ~0, &g_aArgPlugIn[0], RT_ELEMENTS(g_aArgPlugIn), 0, dbgcCmdUnloadPlugIn, "<plugin1> [plugin2..N]", "Unloads one or more plugins." }, 258 { "unset", 1, ~0, &g_aArgMultiStr[0], RT_ELEMENTS(g_aArgMultiStr), 0, dbgcCmdUnset, "<var1> [var1..[varN]]", "Unsets (delete) one or more global variables." }, 259 { "writecore", 1, 1, &g_aArgWriteCore[0], RT_ELEMENTS(g_aArgWriteCore), 0, dbgcCmdWriteCore, "<filename>", "Write core to file." }, 260 260 }; 261 261 … … 483 483 * @param cArgs Number of arguments in the array. 484 484 */ 485 static DECLCALLBACK(int) dbgcCmdHelp(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)485 static DECLCALLBACK(int) dbgcCmdHelp(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 486 486 { 487 487 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp); … … 623 623 NOREF(pCmd); 624 624 NOREF(pVM); 625 NOREF(pResult);626 625 return rc; 627 626 } … … 638 637 * @param cArgs Number of arguments in the array. 639 638 */ 640 static DECLCALLBACK(int) dbgcCmdQuit(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)639 static DECLCALLBACK(int) dbgcCmdQuit(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 641 640 { 642 641 pCmdHlp->pfnPrintf(pCmdHlp, NULL, "Quitting console...\n"); … … 645 644 NOREF(paArgs); 646 645 NOREF(cArgs); 647 NOREF(pResult);648 646 return VERR_DBGC_QUIT; 649 647 } … … 660 658 * @param cArgs Number of arguments in the array. 661 659 */ 662 static DECLCALLBACK(int) dbgcCmdStop(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)660 static DECLCALLBACK(int) dbgcCmdStop(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 663 661 { 664 662 /* … … 677 675 } 678 676 679 NOREF(pCmd); NOREF(paArgs); NOREF(cArgs); NOREF(pResult);677 NOREF(pCmd); NOREF(paArgs); NOREF(cArgs); 680 678 return rc; 681 679 } … … 692 690 * @param cArgs Number of arguments in the array. 693 691 */ 694 static DECLCALLBACK(int) dbgcCmdEcho(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)692 static DECLCALLBACK(int) dbgcCmdEcho(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 695 693 { 696 694 /* … … 707 705 return rc; 708 706 } 709 NOREF(pCmd); NOREF(p Result); NOREF(pVM);707 NOREF(pCmd); NOREF(pVM); 710 708 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "\n"); 711 709 } … … 722 720 * @param cArgs Number of arguments in the array. 723 721 */ 724 static DECLCALLBACK(int) dbgcCmdRunScript(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)722 static DECLCALLBACK(int) dbgcCmdRunScript(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 725 723 { 726 724 /* check that the parser did what it's supposed to do. */ … … 795 793 fclose(pFile); 796 794 797 NOREF(pCmd); NOREF(p Result); NOREF(pVM);795 NOREF(pCmd); NOREF(pVM); 798 796 return rc; 799 797 } … … 810 808 * @param cArgs Number of arguments in the array. 811 809 */ 812 static DECLCALLBACK(int) dbgcCmdDetect(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)810 static DECLCALLBACK(int) dbgcCmdDetect(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 813 811 { 814 812 /* check that the parser did what it's supposed to do. */ … … 833 831 else 834 832 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "Unable to figure out which guest OS it is, sorry.\n"); 835 NOREF(pCmd); NOREF(p Result); NOREF(paArgs);833 NOREF(pCmd); NOREF(paArgs); 836 834 return rc; 837 835 } … … 848 846 * @param cArgs Number of arguments in the array. 849 847 */ 850 static DECLCALLBACK(int) dbgcCmdCpu(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)848 static DECLCALLBACK(int) dbgcCmdCpu(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 851 849 { 852 850 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp); … … 890 888 * @param cArgs Number of arguments in the array. 891 889 */ 892 static DECLCALLBACK(int) dbgcCmdInfo(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)890 static DECLCALLBACK(int) dbgcCmdInfo(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 893 891 { 894 892 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp); … … 915 913 return pCmdHlp->pfnVBoxError(pCmdHlp, rc, "DBGFR3Info()\n"); 916 914 917 NOREF(pCmd); NOREF(pResult);915 NOREF(pCmd); 918 916 return 0; 919 917 } … … 930 928 * @param cArgs Number of arguments in the array. 931 929 */ 932 static DECLCALLBACK(int) dbgcCmdLog(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)930 static DECLCALLBACK(int) dbgcCmdLog(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 933 931 { 934 932 int rc = DBGFR3LogModifyGroups(pVM, paArgs[0].u.pszString); 935 933 if (RT_SUCCESS(rc)) 936 934 return VINF_SUCCESS; 937 NOREF(pCmd); NOREF(cArgs); NOREF(pResult);935 NOREF(pCmd); NOREF(cArgs); 938 936 return pCmdHlp->pfnVBoxError(pCmdHlp, rc, "DBGFR3LogModifyGroups(%p,'%s')\n", pVM, paArgs[0].u.pszString); 939 937 } … … 950 948 * @param cArgs Number of arguments in the array. 951 949 */ 952 static DECLCALLBACK(int) dbgcCmdLogDest(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)950 static DECLCALLBACK(int) dbgcCmdLogDest(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 953 951 { 954 952 int rc = DBGFR3LogModifyDestinations(pVM, paArgs[0].u.pszString); 955 953 if (RT_SUCCESS(rc)) 956 954 return VINF_SUCCESS; 957 NOREF(pCmd); NOREF(cArgs); NOREF(pResult);955 NOREF(pCmd); NOREF(cArgs); 958 956 return pCmdHlp->pfnVBoxError(pCmdHlp, rc, "DBGFR3LogModifyDestinations(%p,'%s')\n", pVM, paArgs[0].u.pszString); 959 957 } … … 970 968 * @param cArgs Number of arguments in the array. 971 969 */ 972 static DECLCALLBACK(int) dbgcCmdLogFlags(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)970 static DECLCALLBACK(int) dbgcCmdLogFlags(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 973 971 { 974 972 int rc = DBGFR3LogModifyFlags(pVM, paArgs[0].u.pszString); 975 973 if (RT_SUCCESS(rc)) 976 974 return VINF_SUCCESS; 977 NOREF(pCmd); NOREF(cArgs); NOREF(pResult);975 NOREF(pCmd); NOREF(cArgs); 978 976 return pCmdHlp->pfnVBoxError(pCmdHlp, rc, "DBGFR3LogModifyFlags(%p,'%s')\n", pVM, paArgs[0].u.pszString); 979 977 } … … 990 988 * @param cArgs Number of arguments in the array. 991 989 */ 992 static DECLCALLBACK(int) dbgcCmdFormat(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)990 static DECLCALLBACK(int) dbgcCmdFormat(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 993 991 { 994 992 LogFlow(("dbgcCmdFormat\n")); … … 1102 1100 } /* arg loop */ 1103 1101 1104 NOREF(pCmd); NOREF(pVM); NOREF(pResult);1102 NOREF(pCmd); NOREF(pVM); 1105 1103 return 0; 1106 1104 } … … 1117 1115 * @param cArgs Number of arguments in the array. 1118 1116 */ 1119 static DECLCALLBACK(int) dbgcCmdLoadImage(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)1117 static DECLCALLBACK(int) dbgcCmdLoadImage(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 1120 1118 { 1121 1119 /* … … 1152 1150 pszFilename, pszModName, &paArgs[1]); 1153 1151 1154 NOREF(pCmd); NOREF(pResult);1152 NOREF(pCmd); 1155 1153 return VINF_SUCCESS; 1156 1154 } … … 1167 1165 * @param cArgs Number of arguments in the array. 1168 1166 */ 1169 static DECLCALLBACK(int) dbgcCmdLoadMap(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)1167 static DECLCALLBACK(int) dbgcCmdLoadMap(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 1170 1168 { 1171 1169 /* … … 1219 1217 pszFilename, pszModName, &paArgs[1]); 1220 1218 1221 NOREF(pCmd); NOREF(pResult);1219 NOREF(pCmd); 1222 1220 return VINF_SUCCESS; 1223 1221 } … … 1234 1232 * @param cArgs Number of arguments in the array. 1235 1233 */ 1236 static DECLCALLBACK(int) dbgcCmdLoadSeg(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)1234 static DECLCALLBACK(int) dbgcCmdLoadSeg(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 1237 1235 { 1238 1236 /* … … 1275 1273 pszFilename, pszModName, &paArgs[1]); 1276 1274 1277 NOREF(pCmd); NOREF(pResult);1275 NOREF(pCmd); 1278 1276 return VINF_SUCCESS; 1279 1277 } … … 1290 1288 * @param cArgs Number of arguments in the array. 1291 1289 */ 1292 static DECLCALLBACK(int) dbgcCmdLoadSyms(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)1290 static DECLCALLBACK(int) dbgcCmdLoadSyms(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 1293 1291 { 1294 1292 /* … … 1363 1361 paArgs[0].u.pszString, Delta, pszModule, ModuleAddress); 1364 1362 1365 NOREF(pCmd); NOREF(pResult);1363 NOREF(pCmd); 1366 1364 return VINF_SUCCESS; 1367 1365 } … … 1378 1376 * @param cArgs Number of arguments in the array. 1379 1377 */ 1380 static DECLCALLBACK(int) dbgcCmdSet(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)1378 static DECLCALLBACK(int) dbgcCmdSet(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 1381 1379 { 1382 1380 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp); … … 1457 1455 pDbgc->papVars[pDbgc->cVars++] = pVar; 1458 1456 1459 NOREF(pCmd); NOREF(pVM); NOREF(cArgs); NOREF(pResult);1457 NOREF(pCmd); NOREF(pVM); NOREF(cArgs); 1460 1458 return 0; 1461 1459 } … … 1472 1470 * @param cArgs Number of arguments in the array. 1473 1471 */ 1474 static DECLCALLBACK(int) dbgcCmdUnset(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)1472 static DECLCALLBACK(int) dbgcCmdUnset(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 1475 1473 { 1476 1474 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp); … … 1515 1513 } /* arg loop */ 1516 1514 1517 NOREF(pCmd); NOREF(pVM); NOREF(pResult);1515 NOREF(pCmd); NOREF(pVM); 1518 1516 return 0; 1519 1517 } … … 1530 1528 * @param cArgs Number of arguments in the array. 1531 1529 */ 1532 static DECLCALLBACK(int) dbgcCmdLoadVars(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)1530 static DECLCALLBACK(int) dbgcCmdLoadVars(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 1533 1531 { 1534 1532 /* … … 1572 1570 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "Failed to open file '%s'.\n", paArgs[0].u.pszString); 1573 1571 1574 NOREF(pCmd); NOREF(pVM); NOREF(pResult);1572 NOREF(pCmd); NOREF(pVM); 1575 1573 return 0; 1576 1574 } … … 1587 1585 * @param cArgs Number of arguments in the array. 1588 1586 */ 1589 static DECLCALLBACK(int) dbgcCmdShowVars(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)1587 static DECLCALLBACK(int) dbgcCmdShowVars(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 1590 1588 { 1591 1589 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp); … … 1595 1593 int rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%-20s ", &pDbgc->papVars[iVar]->szName); 1596 1594 if (!rc) 1597 rc = dbgcCmdFormat(pCmd, pCmdHlp, pVM, &pDbgc->papVars[iVar]->Var, 1 , NULL);1595 rc = dbgcCmdFormat(pCmd, pCmdHlp, pVM, &pDbgc->papVars[iVar]->Var, 1); 1598 1596 if (rc) 1599 1597 return rc; 1600 1598 } 1601 1599 1602 NOREF(paArgs); NOREF(cArgs); NOREF(pResult);1600 NOREF(paArgs); NOREF(cArgs); 1603 1601 return 0; 1604 1602 } … … 1912 1910 * @param cArgs Number of arguments in the array. 1913 1911 */ 1914 static DECLCALLBACK(int) dbgcCmdLoadPlugIn(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)1912 static DECLCALLBACK(int) dbgcCmdLoadPlugIn(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 1915 1913 { 1916 1914 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp); … … 1979 1977 * @param cArgs Number of arguments in the array. 1980 1978 */ 1981 static DECLCALLBACK(int) dbgcCmdUnloadPlugIn(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)1979 static DECLCALLBACK(int) dbgcCmdUnloadPlugIn(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 1982 1980 { 1983 1981 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp); … … 2031 2029 * @param cArgs Number of arguments in the array. 2032 2030 */ 2033 static DECLCALLBACK(int) dbgcCmdShowPlugIns(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)2031 static DECLCALLBACK(int) dbgcCmdShowPlugIns(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 2034 2032 { 2035 2033 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp); … … 2061 2059 * @param cArgs Number of arguments in the array. 2062 2060 */ 2063 static DECLCALLBACK(int) dbgcCmdHarakiri(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)2061 static DECLCALLBACK(int) dbgcCmdHarakiri(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 2064 2062 { 2065 2063 Log(("dbgcCmdHarakiri\n")); 2066 2064 for (;;) 2067 2065 exit(126); 2068 NOREF(pCmd); NOREF(pCmdHlp); NOREF(pVM); NOREF(paArgs); NOREF(cArgs); NOREF(pResult);2066 NOREF(pCmd); NOREF(pCmdHlp); NOREF(pVM); NOREF(paArgs); NOREF(cArgs); 2069 2067 } 2070 2068 … … 2080 2078 * @param cArgs Number of arguments in the array. 2081 2079 */ 2082 static DECLCALLBACK(int) dbgcCmdWriteCore(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs , PDBGCVAR pResult)2080 static DECLCALLBACK(int) dbgcCmdWriteCore(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs) 2083 2081 { 2084 2082 Log(("dbgcCmdWriteCore\n"));
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器