VirtualBox

vbox的更動 62838 路徑 trunk/src/VBox/Debugger


忽略:
時間撮記:
2016-8-1 下午05:01:57 (8 年 以前)
作者:
vboxsync
訊息:

Debugger: warnings

位置:
trunk/src/VBox/Debugger
檔案:
修改 8 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Debugger/DBGCBuiltInSymbols.cpp

    r62480 r62838  
    3636{
    3737    /** @todo externally registered symbols. */
    38     NOREF(pDbgc);
     38    RT_NOREF2(pDbgc, pszSymbol);
    3939    return NULL;
    4040}
  • trunk/src/VBox/Debugger/DBGCCmdHlp.cpp

    r62480 r62838  
    791791static DECLCALLBACK(int) dbgcHlpVarFromDbgfAddr(PDBGCCMDHLP pCmdHlp, PCDBGFADDRESS pAddress, PDBGCVAR pResult)
    792792{
     793    RT_NOREF1(pCmdHlp);
    793794    AssertPtrReturn(pAddress, VERR_INVALID_POINTER);
    794795    AssertReturn(DBGFADDRESS_IS_VALID(pAddress), VERR_INVALID_PARAMETER);
     
    913914                                            uint64_t *pcbRange)
    914915{
     916    RT_NOREF1(pCmdHlp);
    915917/** @todo implement this properly, strings/symbols are not resolved now. */
    916918    switch (pVar->enmRangeType)
  • trunk/src/VBox/Debugger/DBGCCommands.cpp

    r62480 r62838  
    591591                                      const char *pszDescFmt, ...)
    592592{
     593    RT_NOREF1(pDbgc);
    593594    if (pszDescFmt)
    594595    {
     
    629630                                       const char *pszDescFmt, ...)
    630631{
     632    RT_NOREF1(pDbgc);
    631633    if (pszDescFmt)
    632634    {
     
    668670static void dbgcCmdHelpOperators(PDBGC pDbgc, PDBGCCMDHLP pCmdHlp, uint32_t *pcHits)
    669671{
     672    RT_NOREF1(pDbgc);
    670673    DBGCCmdHlpPrintf(pCmdHlp, !*pcHits ? "Operators:\n" : "\nOperators:\n");
    671674    *pcHits += 1;
     
    706709static void dbgcCmdHelpSummary(PDBGC pDbgc, PDBGCCMDHLP pCmdHlp, uint32_t *pcHits)
    707710{
     711    RT_NOREF1(pDbgc);
    708712    *pcHits += 1;
    709713    DBGCCmdHlpPrintf(pCmdHlp,
     
    903907static DECLCALLBACK(int) dbgcCmdRunScript(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs)
    904908{
     909    RT_NOREF2(pUVM, pCmd);
     910
    905911    /* check that the parser did what it's supposed to do. */
    906912    if (    cArgs != 1
     
    11521158static DECLCALLBACK(int) dbgcCmdLogFlush(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs)
    11531159{
     1160    RT_NOREF3(pCmdHlp, pUVM, paArgs);
     1161
    11541162    RTLogFlush(NULL);
    11551163    PRTLOGGER pLogRel = RTLogRelGetDefaultInstance();
     
    16851693static DECLCALLBACK(int) dbgcCmdLoadPlugIn(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs)
    16861694{
     1695    RT_NOREF1(pUVM);
    16871696    PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
    16881697
     
    17171726static DECLCALLBACK(int) dbgcCmdUnloadPlugIn(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs)
    17181727{
     1728    RT_NOREF1(pUVM);
    17191729    PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
    17201730
  • trunk/src/VBox/Debugger/DBGCEmulateCodeView.cpp

    r62480 r62838  
    660660     */
    661661    uint64_t iHitTrigger = 0;
    662     uint64_t iHitDisable = ~0;
     662    uint64_t iHitDisable = UINT64_MAX;
    663663    const char *pszCmds = NULL;
    664664    unsigned iArg = 3;
     
    10011001     */
    10021002    uint64_t iHitTrigger = 0;
    1003     uint64_t iHitDisable = ~0;
     1003    uint64_t iHitDisable = UINT64_MAX;
    10041004    const char *pszCmds = NULL;
    10051005    unsigned iArg = 1;
     
    10611061     */
    10621062    uint64_t iHitTrigger = 0;
    1063     uint64_t iHitDisable = ~0;
     1063    uint64_t iHitDisable = UINT64_MAX;
    10641064    const char *pszCmds = NULL;
    10651065    unsigned iArg = 1;
     
    28202820     */
    28212821    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). */
    28232823    DBGCVAR     VarPDEAddr;             /* The address of the current PDE. */
    28242824    unsigned    cEntries;               /* The number of entries to display. */
     
    37273727static DECLCALLBACK(int) dbgcCmdDumpTypeInfo(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs)
    37283728{
    3729     PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
    3730     int   rc;
    3731 
    37323729    DBGC_CMDHLP_REQ_UVM_RET(pCmdHlp, pCmd, pUVM);
    37333730    DBGC_CMDHLP_ASSERT_PARSER_RET(pCmdHlp, pCmd, 0, cArgs == 1 || cArgs == 2);
     
    38493846static DECLCALLBACK(int) dbgcCmdDumpTypedVal(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs)
    38503847{
    3851     PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
    3852     int   rc;
    3853 
    38543848    DBGC_CMDHLP_REQ_UVM_RET(pCmdHlp, pCmd, pUVM);
    38553849    DBGC_CMDHLP_ASSERT_PARSER_RET(pCmdHlp, pCmd, 0, cArgs == 2 || cArgs == 3);
     
    38633857     */
    38643858    DBGFADDRESS Address;
    3865     rc = pCmdHlp->pfnVarToDbgfAddr(pCmdHlp, &paArgs[1], &Address);
     3859    int rc = pCmdHlp->pfnVarToDbgfAddr(pCmdHlp, &paArgs[1], &Address);
    38663860    if (RT_FAILURE(rc))
    38673861        return pCmdHlp->pfnVBoxError(pCmdHlp, rc, "VarToDbgfAddr(,%Dv,)\n", &paArgs[1]);
     
    40254019static DECLCALLBACK(int) dbgcCmdEditMem(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs)
    40264020{
    4027     PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
    4028     unsigned iArg;
    4029 
    40304021    /*
    40314022     * Validate input.
     
    40334024    DBGC_CMDHLP_ASSERT_PARSER_RET(pCmdHlp, pCmd, 0, cArgs >= 2);
    40344025    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++)
    40364027        DBGC_CMDHLP_ASSERT_PARSER_RET(pCmdHlp, pCmd, 0, paArgs[iArg].enmType == DBGCVAR_TYPE_NUMBER);
    40374028    DBGC_CMDHLP_REQ_UVM_RET(pCmdHlp, pCmd, pUVM);
     
    40544045     */
    40554046    DBGCVAR Addr = paArgs[0];
    4056     for (iArg = 1;;)
     4047    for (unsigned iArg = 1;;)
    40574048    {
    40584049        size_t cbWritten;
     
    42884279static DECLCALLBACK(int) dbgcCmdSearchMem(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs)
    42894280{
     4281    RT_NOREF2(pCmd, paArgs);
     4282
    42904283    /* check that the parser did what it's supposed to do. */
    42914284    //if (    cArgs <= 2
     
    46934686static DECLCALLBACK(int) dbgcCmdEventCtrlReset(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs)
    46944687{
     4688    RT_NOREF1(pCmd);
    46954689    uint32_t            cEventCfgs = 0;
    46964690    DBGFEVENTCONFIG     aEventCfgs[DBGFEVENT_END];
     
    48084802static void dbgcEventDisplay(PDBGCCMDHLP pCmdHlp, const char *pszName, DBGCEVTSTATE enmDefault, PDBGCEVTCFG const *ppEvtCfg)
    48094803{
     4804    RT_NOREF1(enmDefault);
    48104805    PDBGCEVTCFG pEvtCfg = *ppEvtCfg;
    48114806
     
    48774872static DECLCALLBACK(int) dbgcCmdEventCtrlList(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs)
    48784873{
     4874    RT_NOREF2(pCmd, pUVM);
    48794875    PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
    48804876
     
    51935189                                        PDBGCVAR pResult)
    51945190{
     5191    RT_NOREF1(pUVM);
    51955192    AssertReturn(cArgs == 1, VERR_DBGC_PARSE_BUG);
    51965193    AssertReturn(DBGCVAR_ISPOINTER(paArgs[0].enmType), VERR_DBGC_PARSE_BUG);
     
    52145211                                         PDBGCVAR pResult)
    52155212{
     5213    RT_NOREF1(pUVM);
    52165214    AssertReturn(cArgs == 1, VERR_DBGC_PARSE_BUG);
    52175215    AssertReturn(DBGCVAR_ISPOINTER(paArgs[0].enmType), VERR_DBGC_PARSE_BUG);
     
    52355233                                         PDBGCVAR pResult)
    52365234{
     5235    RT_NOREF1(pUVM);
    52375236    AssertReturn(cArgs == 1, VERR_DBGC_PARSE_BUG);
    52385237    AssertReturn(DBGCVAR_ISPOINTER(paArgs[0].enmType), VERR_DBGC_PARSE_BUG);
     
    52565255                                         PDBGCVAR pResult)
    52575256{
     5257    RT_NOREF1(pUVM);
    52585258    AssertReturn(cArgs == 1, VERR_DBGC_PARSE_BUG);
    52595259    AssertReturn(DBGCVAR_ISPOINTER(paArgs[0].enmType), VERR_DBGC_PARSE_BUG);
  • trunk/src/VBox/Debugger/DBGCEval.cpp

    r62480 r62838  
    420420                           DBGCVARCAT enmCategory, PDBGCVAR pResult)
    421421{
     422    RT_NOREF1(enmCategory);
     423
    422424    /*
    423425     * Lookup the function.
     
    10541056                                char *pszArgs, unsigned *piArg, unsigned *pcArgs)
    10551057{
     1058    RT_NOREF1(pszCmdOrFunc);
    10561059    Log2(("dbgcProcessArguments: pszCmdOrFunc=%s pszArgs='%s'\n", pszCmdOrFunc, pszArgs));
    10571060
  • trunk/src/VBox/Debugger/DBGCOps.cpp

    r62480 r62838  
    241241static DECLCALLBACK(int) dbgcOpMinus(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult)
    242242{
     243    RT_NOREF1(enmCat);
    243244    LogFlow(("dbgcOpMinus\n"));
    244245    *pResult = *pArg;
     
    279280static DECLCALLBACK(int) dbgcOpPluss(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult)
    280281{
     282    RT_NOREF1(enmCat);
    281283    LogFlow(("dbgcOpPluss\n"));
    282284    *pResult = *pArg;
     
    306308static DECLCALLBACK(int) dbgcOpBooleanNot(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult)
    307309{
     310    RT_NOREF1(enmCat);
    308311    LogFlow(("dbgcOpBooleanNot\n"));
    309312    *pResult = *pArg;
     
    348351static DECLCALLBACK(int) dbgcOpBitwiseNot(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult)
    349352{
     353    RT_NOREF1(enmCat);
    350354    LogFlow(("dbgcOpBitwiseNot\n"));
    351355    *pResult = *pArg;
     
    386390static DECLCALLBACK(int) dbgcOpVar(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult)
    387391{
     392    RT_NOREF1(enmCat);
    388393    LogFlow(("dbgcOpVar: %s\n", pArg->u.pszString));
    389394    AssertReturn(pArg->enmType == DBGCVAR_TYPE_SYMBOL, VERR_DBGC_PARSE_BUG);
     
    493498DECLCALLBACK(int) dbgcOpAddrFlat(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult)
    494499{
     500    RT_NOREF1(enmCat);
    495501    LogFlow(("dbgcOpAddrFlat\n"));
    496502    DBGCVARTYPE enmType = DBGCVAR_ISHCPOINTER(pArg->enmType) ? DBGCVAR_TYPE_HC_FLAT : DBGCVAR_TYPE_GC_FLAT;
     
    504510DECLCALLBACK(int) dbgcOpAddrPhys(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult)
    505511{
     512    RT_NOREF1(enmCat);
    506513    LogFlow(("dbgcOpAddrPhys\n"));
    507514    DBGCVARTYPE enmType = DBGCVAR_ISHCPOINTER(pArg->enmType) ? DBGCVAR_TYPE_HC_PHYS : DBGCVAR_TYPE_GC_PHYS;
     
    515522DECLCALLBACK(int) dbgcOpAddrHostPhys(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult)
    516523{
     524    RT_NOREF1(enmCat);
    517525    LogFlow(("dbgcOpAddrPhys\n"));
    518526    return DBGCCmdHlpConvert(&pDbgc->CmdHlp, pArg, DBGCVAR_TYPE_HC_PHYS, true /*fConvSyms*/, pResult);
     
    525533DECLCALLBACK(int) dbgcOpAddrHost(PDBGC pDbgc, PCDBGCVAR pArg, DBGCVARCAT enmCat, PDBGCVAR pResult)
    526534{
     535    RT_NOREF1(enmCat);
    527536    LogFlow(("dbgcOpAddrHost\n"));
    528537    return DBGCCmdHlpConvert(&pDbgc->CmdHlp, pArg, DBGCVAR_TYPE_HC_FLAT, true /*fConvSyms*/, pResult);
  • trunk/src/VBox/Debugger/DBGCTcp.cpp

    r62480 r62838  
    279279DBGDECL(int) DBGCTcpTerminate(PUVM pUVM, void *pvData)
    280280{
     281    RT_NOREF1(pUVM);
     282
    281283    /*
    282284     * Destroy the server instance if any.
  • trunk/src/VBox/Debugger/DBGPlugInDarwin.cpp

    r62480 r62838  
    137137                                                             char *pszBuf, size_t cbBuf, size_t *pcbActual)
    138138{
     139    RT_NOREF1(fFlags);
    139140    PDBGDIGGERDARWIN pData = RT_FROM_MEMBER(pThis, DBGDIGGERDARWIN, IDmesg);
    140141
     
    307308static DECLCALLBACK(void *) dbgDiggerDarwinQueryInterface(PUVM pUVM, void *pvData, DBGFOSINTERFACE enmIf)
    308309{
     310    RT_NOREF1(pUVM);
    309311    PDBGDIGGERDARWIN pThis = (PDBGDIGGERDARWIN)pvData;
    310312    switch (enmIf)
     
    352354static DECLCALLBACK(void)  dbgDiggerDarwinTerm(PUVM pUVM, void *pvData)
    353355{
     356    RT_NOREF1(pUVM);
    354357    PDBGDIGGERDARWIN pThis = (PDBGDIGGERDARWIN)pvData;
    355358
     
    412415static int dbgDiggerDarwinAddModule(PDBGDIGGERDARWIN pThis, PUVM pUVM, uint64_t uModAddr, const char *pszName, bool *pf64Bit)
    413416{
     417    RT_NOREF1(pThis);
    414418    union
    415419    {
     
    603607    if (hAs != NIL_RTDBGAS)
    604608    {
    605         uint64_t uRvaNext = 0;
     609        //uint64_t uRvaNext = 0; - what was this?
    606610        uint32_t cLinked  = 0;
    607611        iSeg = cSegs;
     
    945949static DECLCALLBACK(void)  dbgDiggerDarwinDestruct(PUVM pUVM, void *pvData)
    946950{
     951    RT_NOREF2(pUVM, pvData);
    947952
    948953}
     
    954959static DECLCALLBACK(int)  dbgDiggerDarwinConstruct(PUVM pUVM, void *pvData)
    955960{
     961    RT_NOREF1(pUVM);
    956962    PDBGDIGGERDARWIN pThis = (PDBGDIGGERDARWIN)pvData;
    957963
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette