VirtualBox

儲存庫 vbox 的更動 12435


忽略:
時間撮記:
2008-9-12 下午04:12:53 (16 年 以前)
作者:
vboxsync
訊息:

DBGGui / VirtualBox4: check the vtable version.

位置:
trunk
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/include/VBox/dbggui.h

    r12424 r12435  
    6969 * The first byte is the minor version, the 2nd byte is major version number.
    7070 * The high 16-bit word is a magic.  */
    71 #define DBGGUIVT_VERSION 0xbead0100
     71#define DBGGUIVT_VERSION    UINT32_C(0xbead0100)
     72/** Macro for determining whether two versions are compatible or not.
     73 * @returns boolean result.
     74 * @param   uVer1   The first version number.
     75 * @param   uVer2   The second version number.
     76 */
     77#define DBGGUIVT_ARE_VERSIONS_COMPATIBLE(uVer1, uVer2) \
     78    ( ((uVer1) & UINT32_C(0xffffff00)) == ((uVer2) & UINT32_C(0xffffff00)) )
    7279
    7380
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp

    r12424 r12435  
    270270        dbgStatisticsAction = new QAction (this);
    271271        dbgCommandLineAction = new QAction (this);
     272        if (vboxGlobal().getDebuggerModule()== NIL_RTLDRMOD)
     273        {
     274            dbgStatisticsAction->setEnabled (false);
     275            dbgCommandLineAction->setEnabled (false);
     276        }
    272277        dbgLoggingAction = new QAction (this);
    273278        dbgLoggingAction->setCheckable (true);
    274         dbgLoggingAction->setIcon (VBoxGlobal::iconSet (":/start_16px.png")); /// @todo find the default check boxes.
    275279    }
    276280    else
     
    34623466        if (RT_SUCCESS (rc))
    34633467        {
    3464             dbgAdjustRelativePos();
    3465             return true;
    3466         }
    3467         LogRel(("DBGGuiCreate failed, rc=%Rrc\n", rc));
     3468            if (    DBGGUIVT_ARE_VERSIONS_COMPATIBLE(mDbgGuiVT->u32Version, DBGGUIVT_VERSION)
     3469                ||  mDbgGuiVT->u32EndVersion != mDbgGuiVT->u32Version)
     3470            {
     3471                dbgAdjustRelativePos();
     3472                return true;
     3473            }
     3474
     3475            LogRel(("DBGGuiCreate failed, incompatible versions (loaded %#x/%#x, expected %#x)\n",
     3476                    mDbgGuiVT->u32Version, mDbgGuiVT->u32EndVersion, DBGGUIVT_VERSION));
     3477        }
     3478        else
     3479            LogRel(("DBGGuiCreate failed, rc=%Rrc\n", rc));
    34683480    }
    34693481    else
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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