vbox的更動 62838 路徑 trunk/src/VBox/Debugger
- 時間撮記:
- 2016-8-1 下午05:01:57 (8 年 以前)
- 位置:
- trunk/src/VBox/Debugger
- 檔案:
-
- 修改 8 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Debugger/DBGCBuiltInSymbols.cpp
r62480 r62838 36 36 { 37 37 /** @todo externally registered symbols. */ 38 NOREF(pDbgc);38 RT_NOREF2(pDbgc, pszSymbol); 39 39 return NULL; 40 40 } -
trunk/src/VBox/Debugger/DBGCCmdHlp.cpp
r62480 r62838 791 791 static DECLCALLBACK(int) dbgcHlpVarFromDbgfAddr(PDBGCCMDHLP pCmdHlp, PCDBGFADDRESS pAddress, PDBGCVAR pResult) 792 792 { 793 RT_NOREF1(pCmdHlp); 793 794 AssertPtrReturn(pAddress, VERR_INVALID_POINTER); 794 795 AssertReturn(DBGFADDRESS_IS_VALID(pAddress), VERR_INVALID_PARAMETER); … … 913 914 uint64_t *pcbRange) 914 915 { 916 RT_NOREF1(pCmdHlp); 915 917 /** @todo implement this properly, strings/symbols are not resolved now. */ 916 918 switch (pVar->enmRangeType) -
trunk/src/VBox/Debugger/DBGCCommands.cpp
r62480 r62838 591 591 const char *pszDescFmt, ...) 592 592 { 593 RT_NOREF1(pDbgc); 593 594 if (pszDescFmt) 594 595 { … … 629 630 const char *pszDescFmt, ...) 630 631 { 632 RT_NOREF1(pDbgc); 631 633 if (pszDescFmt) 632 634 { … … 668 670 static void dbgcCmdHelpOperators(PDBGC pDbgc, PDBGCCMDHLP pCmdHlp, uint32_t *pcHits) 669 671 { 672 RT_NOREF1(pDbgc); 670 673 DBGCCmdHlpPrintf(pCmdHlp, !*pcHits ? "Operators:\n" : "\nOperators:\n"); 671 674 *pcHits += 1; … … 706 709 static void dbgcCmdHelpSummary(PDBGC pDbgc, PDBGCCMDHLP pCmdHlp, uint32_t *pcHits) 707 710 { 711 RT_NOREF1(pDbgc); 708 712 *pcHits += 1; 709 713 DBGCCmdHlpPrintf(pCmdHlp, … … 903 907 static DECLCALLBACK(int) dbgcCmdRunScript(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs) 904 908 { 909 RT_NOREF2(pUVM, pCmd); 910 905 911 /* check that the parser did what it's supposed to do. */ 906 912 if ( cArgs != 1 … … 1152 1158 static DECLCALLBACK(int) dbgcCmdLogFlush(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs) 1153 1159 { 1160 RT_NOREF3(pCmdHlp, pUVM, paArgs); 1161 1154 1162 RTLogFlush(NULL); 1155 1163 PRTLOGGER pLogRel = RTLogRelGetDefaultInstance(); … … 1685 1693 static DECLCALLBACK(int) dbgcCmdLoadPlugIn(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs) 1686 1694 { 1695 RT_NOREF1(pUVM); 1687 1696 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp); 1688 1697 … … 1717 1726 static DECLCALLBACK(int) dbgcCmdUnloadPlugIn(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs) 1718 1727 { 1728 RT_NOREF1(pUVM); 1719 1729 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp); 1720 1730 -
trunk/src/VBox/Debugger/DBGCEmulateCodeView.cpp
r62480 r62838 660 660 */ 661 661 uint64_t iHitTrigger = 0; 662 uint64_t iHitDisable = ~0;662 uint64_t iHitDisable = UINT64_MAX; 663 663 const char *pszCmds = NULL; 664 664 unsigned iArg = 3; … … 1001 1001 */ 1002 1002 uint64_t iHitTrigger = 0; 1003 uint64_t iHitDisable = ~0;1003 uint64_t iHitDisable = UINT64_MAX; 1004 1004 const char *pszCmds = NULL; 1005 1005 unsigned iArg = 1; … … 1061 1061 */ 1062 1062 uint64_t iHitTrigger = 0; 1063 uint64_t iHitDisable = ~0;1063 uint64_t iHitDisable = UINT64_MAX; 1064 1064 const char *pszCmds = NULL; 1065 1065 unsigned iArg = 1; … … 2820 2820 */ 2821 2821 unsigned iEntry = ~0U; /* The page directory index. ~0U for 'dpta'. */ 2822 DBGCVAR VarGCPtr ;/* The GC address corresponding to the current PDE (iEntry != ~0U). */2822 DBGCVAR VarGCPtr = { NULL, }; /* The GC address corresponding to the current PDE (iEntry != ~0U). */ 2823 2823 DBGCVAR VarPDEAddr; /* The address of the current PDE. */ 2824 2824 unsigned cEntries; /* The number of entries to display. */ … … 3727 3727 static DECLCALLBACK(int) dbgcCmdDumpTypeInfo(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs) 3728 3728 { 3729 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);3730 int rc;3731 3732 3729 DBGC_CMDHLP_REQ_UVM_RET(pCmdHlp, pCmd, pUVM); 3733 3730 DBGC_CMDHLP_ASSERT_PARSER_RET(pCmdHlp, pCmd, 0, cArgs == 1 || cArgs == 2); … … 3849 3846 static DECLCALLBACK(int) dbgcCmdDumpTypedVal(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs) 3850 3847 { 3851 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);3852 int rc;3853 3854 3848 DBGC_CMDHLP_REQ_UVM_RET(pCmdHlp, pCmd, pUVM); 3855 3849 DBGC_CMDHLP_ASSERT_PARSER_RET(pCmdHlp, pCmd, 0, cArgs == 2 || cArgs == 3); … … 3863 3857 */ 3864 3858 DBGFADDRESS Address; 3865 rc = pCmdHlp->pfnVarToDbgfAddr(pCmdHlp, &paArgs[1], &Address);3859 int rc = pCmdHlp->pfnVarToDbgfAddr(pCmdHlp, &paArgs[1], &Address); 3866 3860 if (RT_FAILURE(rc)) 3867 3861 return pCmdHlp->pfnVBoxError(pCmdHlp, rc, "VarToDbgfAddr(,%Dv,)\n", &paArgs[1]); … … 4025 4019 static DECLCALLBACK(int) dbgcCmdEditMem(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs) 4026 4020 { 4027 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);4028 unsigned iArg;4029 4030 4021 /* 4031 4022 * Validate input. … … 4033 4024 DBGC_CMDHLP_ASSERT_PARSER_RET(pCmdHlp, pCmd, 0, cArgs >= 2); 4034 4025 DBGC_CMDHLP_ASSERT_PARSER_RET(pCmdHlp, pCmd, 0, DBGCVAR_ISPOINTER(paArgs[0].enmType)); 4035 for ( iArg = 1; iArg < cArgs; iArg++)4026 for (unsigned iArg = 1; iArg < cArgs; iArg++) 4036 4027 DBGC_CMDHLP_ASSERT_PARSER_RET(pCmdHlp, pCmd, 0, paArgs[iArg].enmType == DBGCVAR_TYPE_NUMBER); 4037 4028 DBGC_CMDHLP_REQ_UVM_RET(pCmdHlp, pCmd, pUVM); … … 4054 4045 */ 4055 4046 DBGCVAR Addr = paArgs[0]; 4056 for ( iArg = 1;;)4047 for (unsigned iArg = 1;;) 4057 4048 { 4058 4049 size_t cbWritten; … … 4288 4279 static DECLCALLBACK(int) dbgcCmdSearchMem(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs) 4289 4280 { 4281 RT_NOREF2(pCmd, paArgs); 4282 4290 4283 /* check that the parser did what it's supposed to do. */ 4291 4284 //if ( cArgs <= 2 … … 4693 4686 static DECLCALLBACK(int) dbgcCmdEventCtrlReset(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs) 4694 4687 { 4688 RT_NOREF1(pCmd); 4695 4689 uint32_t cEventCfgs = 0; 4696 4690 DBGFEVENTCONFIG aEventCfgs[DBGFEVENT_END]; … … 4808 4802 static void dbgcEventDisplay(PDBGCCMDHLP pCmdHlp, const char *pszName, DBGCEVTSTATE enmDefault, PDBGCEVTCFG const *ppEvtCfg) 4809 4803 { 4804 RT_NOREF1(enmDefault); 4810 4805 PDBGCEVTCFG pEvtCfg = *ppEvtCfg; 4811 4806 … … 4877 4872 static DECLCALLBACK(int) dbgcCmdEventCtrlList(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs) 4878 4873 { 4874 RT_NOREF2(pCmd, pUVM); 4879 4875 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp); 4880 4876 … … 5193 5189 PDBGCVAR pResult) 5194 5190 { 5191 RT_NOREF1(pUVM); 5195 5192 AssertReturn(cArgs == 1, VERR_DBGC_PARSE_BUG); 5196 5193 AssertReturn(DBGCVAR_ISPOINTER(paArgs[0].enmType), VERR_DBGC_PARSE_BUG); … … 5214 5211 PDBGCVAR pResult) 5215 5212 { 5213 RT_NOREF1(pUVM); 5216 5214 AssertReturn(cArgs == 1, VERR_DBGC_PARSE_BUG); 5217 5215 AssertReturn(DBGCVAR_ISPOINTER(paArgs[0].enmType), VERR_DBGC_PARSE_BUG); … … 5235 5233 PDBGCVAR pResult) 5236 5234 { 5235 RT_NOREF1(pUVM); 5237 5236 AssertReturn(cArgs == 1, VERR_DBGC_PARSE_BUG); 5238 5237 AssertReturn(DBGCVAR_ISPOINTER(paArgs[0].enmType), VERR_DBGC_PARSE_BUG); … … 5256 5255 PDBGCVAR pResult) 5257 5256 { 5257 RT_NOREF1(pUVM); 5258 5258 AssertReturn(cArgs == 1, VERR_DBGC_PARSE_BUG); 5259 5259 AssertReturn(DBGCVAR_ISPOINTER(paArgs[0].enmType), VERR_DBGC_PARSE_BUG); -
trunk/src/VBox/Debugger/DBGCEval.cpp
r62480 r62838 420 420 DBGCVARCAT enmCategory, PDBGCVAR pResult) 421 421 { 422 RT_NOREF1(enmCategory); 423 422 424 /* 423 425 * Lookup the function. … … 1054 1056 char *pszArgs, unsigned *piArg, unsigned *pcArgs) 1055 1057 { 1058 RT_NOREF1(pszCmdOrFunc); 1056 1059 Log2(("dbgcProcessArguments: pszCmdOrFunc=%s pszArgs='%s'\n", pszCmdOrFunc, pszArgs)); 1057 1060 -
trunk/src/VBox/Debugger/DBGCOps.cpp
r62480 r62838 241 241 static DECLCALLBACK(int) dbgcOpMinus(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult) 242 242 { 243 RT_NOREF1(enmCat); 243 244 LogFlow(("dbgcOpMinus\n")); 244 245 *pResult = *pArg; … … 279 280 static DECLCALLBACK(int) dbgcOpPluss(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult) 280 281 { 282 RT_NOREF1(enmCat); 281 283 LogFlow(("dbgcOpPluss\n")); 282 284 *pResult = *pArg; … … 306 308 static DECLCALLBACK(int) dbgcOpBooleanNot(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult) 307 309 { 310 RT_NOREF1(enmCat); 308 311 LogFlow(("dbgcOpBooleanNot\n")); 309 312 *pResult = *pArg; … … 348 351 static DECLCALLBACK(int) dbgcOpBitwiseNot(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult) 349 352 { 353 RT_NOREF1(enmCat); 350 354 LogFlow(("dbgcOpBitwiseNot\n")); 351 355 *pResult = *pArg; … … 386 390 static DECLCALLBACK(int) dbgcOpVar(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult) 387 391 { 392 RT_NOREF1(enmCat); 388 393 LogFlow(("dbgcOpVar: %s\n", pArg->u.pszString)); 389 394 AssertReturn(pArg->enmType == DBGCVAR_TYPE_SYMBOL, VERR_DBGC_PARSE_BUG); … … 493 498 DECLCALLBACK(int) dbgcOpAddrFlat(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult) 494 499 { 500 RT_NOREF1(enmCat); 495 501 LogFlow(("dbgcOpAddrFlat\n")); 496 502 DBGCVARTYPE enmType = DBGCVAR_ISHCPOINTER(pArg->enmType) ? DBGCVAR_TYPE_HC_FLAT : DBGCVAR_TYPE_GC_FLAT; … … 504 510 DECLCALLBACK(int) dbgcOpAddrPhys(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult) 505 511 { 512 RT_NOREF1(enmCat); 506 513 LogFlow(("dbgcOpAddrPhys\n")); 507 514 DBGCVARTYPE enmType = DBGCVAR_ISHCPOINTER(pArg->enmType) ? DBGCVAR_TYPE_HC_PHYS : DBGCVAR_TYPE_GC_PHYS; … … 515 522 DECLCALLBACK(int) dbgcOpAddrHostPhys(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult) 516 523 { 524 RT_NOREF1(enmCat); 517 525 LogFlow(("dbgcOpAddrPhys\n")); 518 526 return DBGCCmdHlpConvert(&pDbgc->CmdHlp, pArg, DBGCVAR_TYPE_HC_PHYS, true /*fConvSyms*/, pResult); … … 525 533 DECLCALLBACK(int) dbgcOpAddrHost(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult) 526 534 { 535 RT_NOREF1(enmCat); 527 536 LogFlow(("dbgcOpAddrHost\n")); 528 537 return DBGCCmdHlpConvert(&pDbgc->CmdHlp, pArg, DBGCVAR_TYPE_HC_FLAT, true /*fConvSyms*/, pResult); -
trunk/src/VBox/Debugger/DBGCTcp.cpp
r62480 r62838 279 279 DBGDECL(int) DBGCTcpTerminate(PUVM pUVM, void *pvData) 280 280 { 281 RT_NOREF1(pUVM); 282 281 283 /* 282 284 * Destroy the server instance if any. -
trunk/src/VBox/Debugger/DBGPlugInDarwin.cpp
r62480 r62838 137 137 char *pszBuf, size_t cbBuf, size_t *pcbActual) 138 138 { 139 RT_NOREF1(fFlags); 139 140 PDBGDIGGERDARWIN pData = RT_FROM_MEMBER(pThis, DBGDIGGERDARWIN, IDmesg); 140 141 … … 307 308 static DECLCALLBACK(void *) dbgDiggerDarwinQueryInterface(PUVM pUVM, void *pvData, DBGFOSINTERFACE enmIf) 308 309 { 310 RT_NOREF1(pUVM); 309 311 PDBGDIGGERDARWIN pThis = (PDBGDIGGERDARWIN)pvData; 310 312 switch (enmIf) … … 352 354 static DECLCALLBACK(void) dbgDiggerDarwinTerm(PUVM pUVM, void *pvData) 353 355 { 356 RT_NOREF1(pUVM); 354 357 PDBGDIGGERDARWIN pThis = (PDBGDIGGERDARWIN)pvData; 355 358 … … 412 415 static int dbgDiggerDarwinAddModule(PDBGDIGGERDARWIN pThis, PUVM pUVM, uint64_t uModAddr, const char *pszName, bool *pf64Bit) 413 416 { 417 RT_NOREF1(pThis); 414 418 union 415 419 { … … 603 607 if (hAs != NIL_RTDBGAS) 604 608 { 605 uint64_t uRvaNext = 0;609 //uint64_t uRvaNext = 0; - what was this? 606 610 uint32_t cLinked = 0; 607 611 iSeg = cSegs; … … 945 949 static DECLCALLBACK(void) dbgDiggerDarwinDestruct(PUVM pUVM, void *pvData) 946 950 { 951 RT_NOREF2(pUVM, pvData); 947 952 948 953 } … … 954 959 static DECLCALLBACK(int) dbgDiggerDarwinConstruct(PUVM pUVM, void *pvData) 955 960 { 961 RT_NOREF1(pUVM); 956 962 PDBGDIGGERDARWIN pThis = (PDBGDIGGERDARWIN)pvData; 957 963
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器