summaryrefslogtreecommitdiff
path: root/src/VBox/Main/src-client/SessionImpl.cpp
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2022-09-26 19:29:50 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2022-09-26 19:29:50 +0000
commitb2e4c55d1ca2cbba0f971eb4409c0a81a17546fa (patch)
tree8808f7d1e2cb5d3328de15df2e5d0d49db6cb417 /src/VBox/Main/src-client/SessionImpl.cpp
parentcf314082b4c736a8bee3a72826f7bd24297a0839 (diff)
downloadVirtualBox-svn-b2e4c55d1ca2cbba0f971eb4409c0a81a17546fa.tar.gz
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
Diffstat (limited to 'src/VBox/Main/src-client/SessionImpl.cpp')
-rw-r--r--src/VBox/Main/src-client/SessionImpl.cpp17
1 files changed, 17 insertions, 0 deletions
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<IGuestDebugControl> &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<IUSBDevice> &aDevice,
const ComPtr<IVirtualBoxErrorInfo> &aError,
ULONG aMaskedInterfaces,