VirtualBox

Changeset 12435 in vbox for trunk/src


Ignore:
Timestamp:
Sep 12, 2008 4:12:53 PM (16 years ago)
Author:
vboxsync
Message:

DBGGui / VirtualBox4: check the vtable version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.

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