Changeset 75205 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 31, 2018 1:19:05 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r75006 r75205 4178 4178 4179 4179 #ifdef VBOX_WITH_DEBUGGER_GUI 4180 /* setup the debugger gui. */ 4181 if (RTEnvExist("VBOX_GUI_NO_DEBUGGER")) 4182 m_fDbgEnabled = m_fDbgAutoShow = m_fDbgAutoShowCommandLine = m_fDbgAutoShowStatistics = false; 4183 if (m_fDbgEnabled) 4184 { 4185 RTERRINFOSTATIC ErrInfo; 4186 RTErrInfoInitStatic(&ErrInfo); 4187 int vrc = SUPR3HardenedLdrLoadAppPriv("VBoxDbg", &m_hVBoxDbg, RTLDRLOAD_FLAGS_LOCAL, &ErrInfo.Core); 4188 if (RT_FAILURE(vrc)) 4189 { 4190 m_hVBoxDbg = NIL_RTLDRMOD; 4191 m_fDbgAutoShow = m_fDbgAutoShowCommandLine = m_fDbgAutoShowStatistics = false; 4192 LogRel(("Failed to load VBoxDbg, rc=%Rrc - %s\n", vrc, ErrInfo.Core.pszMsg)); 4180 /* Setup the debugger gui if VM console process: */ 4181 if (isVMConsoleProcess()) 4182 { 4183 if (RTEnvExist("VBOX_GUI_NO_DEBUGGER")) 4184 m_fDbgEnabled = m_fDbgAutoShow = m_fDbgAutoShowCommandLine = m_fDbgAutoShowStatistics = false; 4185 if (m_fDbgEnabled) 4186 { 4187 RTERRINFOSTATIC ErrInfo; 4188 RTErrInfoInitStatic(&ErrInfo); 4189 int vrc = SUPR3HardenedLdrLoadAppPriv("VBoxDbg", &m_hVBoxDbg, RTLDRLOAD_FLAGS_LOCAL, &ErrInfo.Core); 4190 if (RT_FAILURE(vrc)) 4191 { 4192 m_hVBoxDbg = NIL_RTLDRMOD; 4193 m_fDbgAutoShow = m_fDbgAutoShowCommandLine = m_fDbgAutoShowStatistics = false; 4194 LogRel(("Failed to load VBoxDbg, rc=%Rrc - %s\n", vrc, ErrInfo.Core.pszMsg)); 4195 } 4193 4196 } 4194 4197 }
Note:
See TracChangeset
for help on using the changeset viewer.