From b2e4c55d1ca2cbba0f971eb4409c0a81a17546fa Mon Sep 17 00:00:00 2001 From: vboxsync Date: Mon, 26 Sep 2022 19:29:50 +0000 Subject: Main,FE/VBoxManage: Implement possiblity to configure some of the guest debugging facilities to make it more accessible, bugref:1098 git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@96888 cfe28804-0f27-0410-a406-dd0f0b0b656f --- src/VBox/Main/src-client/SessionImpl.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/VBox/Main/src-client/SessionImpl.cpp') diff --git a/src/VBox/Main/src-client/SessionImpl.cpp b/src/VBox/Main/src-client/SessionImpl.cpp index 33b639e353c..5ed3a19accd 100644 --- a/src/VBox/Main/src-client/SessionImpl.cpp +++ b/src/VBox/Main/src-client/SessionImpl.cpp @@ -873,6 +873,23 @@ HRESULT Session::onDnDModeChange(DnDMode_T aDndMode) #endif } +HRESULT Session::onGuestDebugControlChange(const ComPtr &aGuestDebugControl) +{ + LogFlowThisFunc(("\n")); + + AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); + AssertReturn(mState == SessionState_Locked, VBOX_E_INVALID_VM_STATE); + AssertReturn(mType == SessionType_WriteLock, VBOX_E_INVALID_OBJECT_STATE); +#ifndef VBOX_COM_INPROC_API_CLIENT + AssertReturn(mConsole, VBOX_E_INVALID_OBJECT_STATE); + + return mConsole->i_onGuestDebugControlChange(aGuestDebugControl); +#else + RT_NOREF(aSerialPort); + return S_OK; +#endif +} + HRESULT Session::onUSBDeviceAttach(const ComPtr &aDevice, const ComPtr &aError, ULONG aMaskedInterfaces, -- cgit v1.2.1