VirtualBox

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

Last change on this file since 30670 was 28800, checked in by vboxsync, 14 years ago

Automated rebranding to Oracle copyright/license strings via filemuncher

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.5 KB
Line 
1/* $Id: MachineDebuggerImpl.h 28800 2010-04-27 08:22:32Z 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 Console;
26
27class ATL_NO_VTABLE MachineDebugger :
28 public VirtualBoxBase,
29 public VirtualBoxSupportErrorInfoImpl<MachineDebugger, IMachineDebugger>,
30 public VirtualBoxSupportTranslation<MachineDebugger>,
31 VBOX_SCRIPTABLE_IMPL(IMachineDebugger)
32{
33public:
34
35 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT (MachineDebugger)
36
37 DECLARE_NOT_AGGREGATABLE (MachineDebugger)
38
39 DECLARE_PROTECT_FINAL_CONSTRUCT()
40
41 BEGIN_COM_MAP(MachineDebugger)
42 COM_INTERFACE_ENTRY (ISupportErrorInfo)
43 COM_INTERFACE_ENTRY (IMachineDebugger)
44 COM_INTERFACE_ENTRY (IDispatch)
45 END_COM_MAP()
46
47 DECLARE_EMPTY_CTOR_DTOR (MachineDebugger)
48
49 HRESULT FinalConstruct();
50 void FinalRelease();
51
52 // public initializer/uninitializer for internal purposes only
53 HRESULT init (Console *aParent);
54 void uninit();
55
56 // IMachineDebugger properties
57 STDMETHOD(COMGETTER(Singlestep)) (BOOL *aEnabled);
58 STDMETHOD(COMSETTER(Singlestep)) (BOOL aEnable);
59 STDMETHOD(COMGETTER(RecompileUser)) (BOOL *aEnabled);
60 STDMETHOD(COMSETTER(RecompileUser)) (BOOL aEnable);
61 STDMETHOD(COMGETTER(RecompileSupervisor)) (BOOL *aEnabled);
62 STDMETHOD(COMSETTER(RecompileSupervisor)) (BOOL aEnable);
63 STDMETHOD(COMGETTER(PATMEnabled)) (BOOL *aEnabled);
64 STDMETHOD(COMSETTER(PATMEnabled)) (BOOL aEnable);
65 STDMETHOD(COMGETTER(CSAMEnabled)) (BOOL *aEnabled);
66 STDMETHOD(COMSETTER(CSAMEnabled)) (BOOL aEnable);
67 STDMETHOD(COMGETTER(LogEnabled)) (BOOL *aEnabled);
68 STDMETHOD(COMSETTER(LogEnabled)) (BOOL aEnable);
69 STDMETHOD(COMGETTER(HWVirtExEnabled)) (BOOL *aEnabled);
70 STDMETHOD(COMGETTER(HWVirtExNestedPagingEnabled)) (BOOL *aEnabled);
71 STDMETHOD(COMGETTER(HWVirtExVPIDEnabled)) (BOOL *aEnabled);
72 STDMETHOD(COMGETTER(PAEEnabled)) (BOOL *aEnabled);
73 STDMETHOD(COMGETTER(VirtualTimeRate)) (ULONG *aPct);
74 STDMETHOD(COMSETTER(VirtualTimeRate)) (ULONG aPct);
75 STDMETHOD(COMGETTER(VM)) (ULONG64 *aVm);
76 STDMETHOD(InjectNMI)();
77
78 // IMachineDebugger methods
79 STDMETHOD(ResetStats (IN_BSTR aPattern));
80 STDMETHOD(DumpStats (IN_BSTR aPattern));
81 STDMETHOD(GetStats (IN_BSTR aPattern, BOOL aWithDescriptions, BSTR *aStats));
82
83
84 // "public-private methods"
85 void flushQueuedSettings();
86
87 // for VirtualBoxSupportErrorInfoImpl
88 static const wchar_t *getComponentName() { return L"MachineDebugger"; }
89
90private:
91 // private methods
92 bool queueSettings() const;
93
94 Console * const mParent;
95 // flags whether settings have been queued because
96 // they could not be sent to the VM (not up yet, etc.)
97 int mSinglestepQueued;
98 int mRecompileUserQueued;
99 int mRecompileSupervisorQueued;
100 int mPatmEnabledQueued;
101 int mCsamEnabledQueued;
102 int mLogEnabledQueued;
103 uint32_t mVirtualTimeRateQueued;
104 bool mFlushMode;
105};
106
107#endif /* ____H_MACHINEDEBUGGER */
108/* 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