VirtualBox

Changeset 39477 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Nov 30, 2011 4:02:17 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
75132
Message:

VMM,VBoxManage,Main: Automatic map file loading for simplifying debugging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r39450 r39477  
    663663    PUVM pUVM = pConsole->mpUVM = VMR3GetUVM(pVM);
    664664    VMR3RetainUVM(pUVM);
    665     int vrc = pConsole->configConstructorInner(pVM, &alock);
     665    int vrc;
     666    try
     667    {
     668        vrc = pConsole->configConstructorInner(pVM, &alock);
     669    }
     670    catch (...)
     671    {
     672        vrc = VERR_UNEXPECTED_EXCEPTION;
     673    }
    666674    if (RT_FAILURE(vrc))
    667675    {
     
    11171125#endif
    11181126        }
    1119         /*
    1120          * Enable 3 following devices: HPET, SMC, LPC on MacOS X guests or on ICH9 chipset
    1121          */
     1127
     1128        /*
     1129         * Enable the following devices: HPET, SMC and LPC on MacOS X guests or on ICH9 chipset
     1130         */
     1131
    11221132        /*
    11231133         * High Precision Event Timer (HPET)
     
    26312641                }
    26322642            }
     2643        }
     2644
     2645        /*
     2646         * Set up the default DBGF search paths if all is cool so far.
     2647         */
     2648        {
     2649            PCFGMNODE pDbgf;
     2650            InsertConfigNode(pRoot, "DBGF", &pDbgf);
     2651
     2652            hrc = pMachine->COMGETTER(SettingsFilePath)(bstr.asOutParam());         H();
     2653            Utf8Str strSettingsPath(bstr);
     2654            bstr.setNull();
     2655            strSettingsPath.stripFilename();
     2656
     2657            char szHomeDir[RTPATH_MAX];
     2658            rc = RTPathUserHome(szHomeDir, sizeof(szHomeDir));
     2659            if (RT_FAILURE(rc))
     2660                szHomeDir[0] = '\0';
     2661
     2662            Utf8Str strPath;
     2663            strPath.append(strSettingsPath).append("/debug/;");
     2664            strPath.append(strSettingsPath).append("/;");
     2665            strPath.append(szHomeDir).append("/");
     2666
     2667            InsertConfigString(pDbgf, "Path", strPath.c_str());
    26332668        }
    26342669    }
Note: See TracChangeset for help on using the changeset viewer.

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