VirtualBox

source: vbox/trunk/src/VBox/Main/include/MachineDebuggerImpl.h@ 30760

Last change on this file since 30760 was 30760, checked in by vboxsync, 15 years ago

Main: separate internal machine data structs into MachineImplPrivate.h to significantly speed up compilation and for better interface separation; remove obsolete ConsoleEvents.h file

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.3 KB
Line 
1/* $Id: MachineDebuggerImpl.h 30760 2010-07-09 13:12:04Z vboxsync $ */
2
3/** @file
4 *
5 * VirtualBox COM class implementation
6 */
7
8/*
9 * Copyright (C) 2006-2008 Oracle Corporation
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.org. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License (GPL) as published by the Free Software
15 * Foundation, in version 2 as it comes in the "COPYING" file of the
16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18 */
19
20#ifndef ____H_MACHINEDEBUGGER
21#define ____H_MACHINEDEBUGGER
22
23#include "VirtualBoxBase.h"
24
25class ATL_NO_VTABLE MachineDebugger :
26 public VirtualBoxBase,
27 VBOX_SCRIPTABLE_IMPL(IMachineDebugger)
28{
29public:
30
31 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT (MachineDebugger, IMachineDebugger)
32
33 DECLARE_NOT_AGGREGATABLE (MachineDebugger)
34
35 DECLARE_PROTECT_FINAL_CONSTRUCT()
36
37 BEGIN_COM_MAP(MachineDebugger)
38 COM_INTERFACE_ENTRY (ISupportErrorInfo)
39 COM_INTERFACE_ENTRY (IMachineDebugger)
40 COM_INTERFACE_ENTRY (IDispatch)
41 END_COM_MAP()
42
43 DECLARE_EMPTY_CTOR_DTOR (MachineDebugger)
44
45 HRESULT FinalConstruct();
46 void FinalRelease();
47
48 // public initializer/uninitializer for internal purposes only
49 HRESULT init (Console *aParent);
50 void uninit();
51
52 // IMachineDebugger properties
53 STDMETHOD(COMGETTER(Singlestep)) (BOOL *aEnabled);
54 STDMETHOD(COMSETTER(Singlestep)) (BOOL aEnable);
55 STDMETHOD(COMGETTER(RecompileUser)) (BOOL *aEnabled);
56 STDMETHOD(COMSETTER(RecompileUser)) (BOOL aEnable);
57 STDMETHOD(COMGETTER(RecompileSupervisor)) (BOOL *aEnabled);
58 STDMETHOD(COMSETTER(RecompileSupervisor)) (BOOL aEnable);
59 STDMETHOD(COMGETTER(PATMEnabled)) (BOOL *aEnabled);
60 STDMETHOD(COMSETTER(PATMEnabled)) (BOOL aEnable);
61 STDMETHOD(COMGETTER(CSAMEnabled)) (BOOL *aEnabled);
62 STDMETHOD(COMSETTER(CSAMEnabled)) (BOOL aEnable);
63 STDMETHOD(COMGETTER(LogEnabled)) (BOOL *aEnabled);
64 STDMETHOD(COMSETTER(LogEnabled)) (BOOL aEnable);
65 STDMETHOD(COMGETTER(HWVirtExEnabled)) (BOOL *aEnabled);
66 STDMETHOD(COMGETTER(HWVirtExNestedPagingEnabled)) (BOOL *aEnabled);
67 STDMETHOD(COMGETTER(HWVirtExVPIDEnabled)) (BOOL *aEnabled);
68 STDMETHOD(COMGETTER(PAEEnabled)) (BOOL *aEnabled);
69 STDMETHOD(COMGETTER(VirtualTimeRate)) (ULONG *aPct);
70 STDMETHOD(COMSETTER(VirtualTimeRate)) (ULONG aPct);
71 STDMETHOD(COMGETTER(VM)) (ULONG64 *aVm);
72 STDMETHOD(InjectNMI)();
73
74 // IMachineDebugger methods
75 STDMETHOD(ResetStats (IN_BSTR aPattern));
76 STDMETHOD(DumpStats (IN_BSTR aPattern));
77 STDMETHOD(GetStats (IN_BSTR aPattern, BOOL aWithDescriptions, BSTR *aStats));
78
79
80 // "public-private methods"
81 void flushQueuedSettings();
82
83private:
84 // private methods
85 bool queueSettings() const;
86
87 Console * const mParent;
88 // flags whether settings have been queued because
89 // they could not be sent to the VM (not up yet, etc.)
90 int mSinglestepQueued;
91 int mRecompileUserQueued;
92 int mRecompileSupervisorQueued;
93 int mPatmEnabledQueued;
94 int mCsamEnabledQueued;
95 int mLogEnabledQueued;
96 uint32_t mVirtualTimeRateQueued;
97 bool mFlushMode;
98};
99
100#endif /* ____H_MACHINEDEBUGGER */
101/* vi: set tabstop=4 shiftwidth=4 expandtab: */
Note: See TracBrowser for help on using the repository browser.

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