VirtualBox

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

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

IMachineDebugger: More methods and attribute stubs that may come in useful.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.9 KB
Line 
1/* $Id: MachineDebuggerImpl.h 35250 2010-12-20 16:10:30Z 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 VBOX_SCRIPTABLE_IMPL(IMachineDebugger)
30{
31public:
32
33 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT (MachineDebugger, IMachineDebugger)
34
35 DECLARE_NOT_AGGREGATABLE (MachineDebugger)
36
37 DECLARE_PROTECT_FINAL_CONSTRUCT()
38
39 BEGIN_COM_MAP(MachineDebugger)
40 COM_INTERFACE_ENTRY (ISupportErrorInfo)
41 COM_INTERFACE_ENTRY (IMachineDebugger)
42 COM_INTERFACE_ENTRY (IDispatch)
43 END_COM_MAP()
44
45 DECLARE_EMPTY_CTOR_DTOR (MachineDebugger)
46
47 HRESULT FinalConstruct();
48 void FinalRelease();
49
50 // public initializer/uninitializer for internal purposes only
51 HRESULT init (Console *aParent);
52 void uninit();
53
54 // IMachineDebugger properties
55 STDMETHOD(COMGETTER(Singlestep)) (BOOL *aEnabled);
56 STDMETHOD(COMSETTER(Singlestep)) (BOOL aEnable);
57 STDMETHOD(COMGETTER(RecompileUser)) (BOOL *aEnabled);
58 STDMETHOD(COMSETTER(RecompileUser)) (BOOL aEnable);
59 STDMETHOD(COMGETTER(RecompileSupervisor)) (BOOL *aEnabled);
60 STDMETHOD(COMSETTER(RecompileSupervisor)) (BOOL aEnable);
61 STDMETHOD(COMGETTER(PATMEnabled)) (BOOL *aEnabled);
62 STDMETHOD(COMSETTER(PATMEnabled)) (BOOL aEnable);
63 STDMETHOD(COMGETTER(CSAMEnabled)) (BOOL *aEnabled);
64 STDMETHOD(COMSETTER(CSAMEnabled)) (BOOL aEnable);
65 STDMETHOD(COMGETTER(LogEnabled)) (BOOL *aEnabled);
66 STDMETHOD(COMSETTER(LogEnabled)) (BOOL aEnable);
67 STDMETHOD(COMGETTER(LogFlags)) (BSTR *a_pbstrSettings);
68 STDMETHOD(COMGETTER(LogGroups)) (BSTR *a_pbstrSettings);
69 STDMETHOD(COMGETTER(LogDestinations)) (BSTR *a_pbstrSettings);
70 STDMETHOD(COMGETTER(HWVirtExEnabled)) (BOOL *aEnabled);
71 STDMETHOD(COMGETTER(HWVirtExNestedPagingEnabled)) (BOOL *aEnabled);
72 STDMETHOD(COMGETTER(HWVirtExVPIDEnabled)) (BOOL *aEnabled);
73 STDMETHOD(COMGETTER(PAEEnabled)) (BOOL *aEnabled);
74 STDMETHOD(COMGETTER(OSName))(BSTR *a_pbstrName);
75 STDMETHOD(COMGETTER(OSVersion))(BSTR *a_pbstrVersion);
76 STDMETHOD(COMGETTER(VirtualTimeRate)) (ULONG *aPct);
77 STDMETHOD(COMSETTER(VirtualTimeRate)) (ULONG aPct);
78 STDMETHOD(COMGETTER(VM)) (LONG64 *aVm);
79
80 // IMachineDebugger methods
81 STDMETHOD(DumpGuestCore)(IN_BSTR a_bstrFilename, IN_BSTR a_bstrCompression);
82 STDMETHOD(DumpHostProcessCore)(IN_BSTR a_bstrFilename, IN_BSTR a_bstrCompression);
83 STDMETHOD(Info)(IN_BSTR a_bstrName, IN_BSTR a_bstrArgs, BSTR *a_bstrInfo);
84 STDMETHOD(InjectNMI)();
85 STDMETHOD(ModifyLogFlags)(IN_BSTR a_bstrSettings);
86 STDMETHOD(ModifyLogGroups)(IN_BSTR a_bstrSettings);
87 STDMETHOD(ModifyLogDestinations)(IN_BSTR a_bstrSettings);
88 STDMETHOD(ReadPhysicalMemory)(LONG64 a_Address, ULONG a_cbRead, ComSafeArrayOut(BYTE, a_abData));
89 STDMETHOD(WritePhysicalMemory)(LONG64 a_Address, ULONG a_cbRead, ComSafeArrayIn(BYTE, a_abData));
90 STDMETHOD(ReadVirtualMemory)(ULONG a_idCpu, LONG64 a_Address, ULONG a_cbRead, ComSafeArrayOut(BYTE, a_abData));
91 STDMETHOD(WriteVirtualMemory)(ULONG a_idCpu, LONG64 a_Address, ULONG a_cbRead, ComSafeArrayIn(BYTE, a_abData));
92 STDMETHOD(DetectOS)(BSTR *a_pbstrName);
93 STDMETHOD(GetRegister)(ULONG a_idCpu, IN_BSTR a_bstrName, BSTR *a_pbstrValue);
94 STDMETHOD(GetRegisters)(ULONG a_idCpu, ComSafeArrayOut(BSTR, a_bstrNames), ComSafeArrayOut(BSTR, a_bstrValues));
95 STDMETHOD(SetRegister)(ULONG a_idCpu, IN_BSTR a_bstrName, IN_BSTR a_bstrValue);
96 STDMETHOD(SetRegisters)(ULONG a_idCpu, ComSafeArrayIn(IN_BSTR, a_bstrNames), ComSafeArrayIn(IN_BSTR, a_bstrValues));
97 STDMETHOD(DumpGuestStack)(ULONG a_idCpu, BSTR *a_pbstrStack);
98 STDMETHOD(ResetStats)(IN_BSTR aPattern);
99 STDMETHOD(DumpStats)(IN_BSTR aPattern);
100 STDMETHOD(GetStats)(IN_BSTR aPattern, BOOL aWithDescriptions, BSTR *aStats);
101
102
103 // "public-private methods"
104 void flushQueuedSettings();
105
106private:
107 // private methods
108 bool queueSettings() const;
109
110 Console * const mParent;
111 // flags whether settings have been queued because
112 // they could not be sent to the VM (not up yet, etc.)
113 int mSinglestepQueued;
114 int mRecompileUserQueued;
115 int mRecompileSupervisorQueued;
116 int mPatmEnabledQueued;
117 int mCsamEnabledQueued;
118 int mLogEnabledQueued;
119 uint32_t mVirtualTimeRateQueued;
120 bool mFlushMode;
121};
122
123#endif /* ____H_MACHINEDEBUGGER */
124/* 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