VirtualBox

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

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

IMachineDebugger: Stubbed a few, new methods that may come in handy in the 4.0 product cycle. Adjusted the dumpGuestCore method so that it can later be amended with any stream compression method we like.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.3 KB
Line 
1/* $Id: MachineDebuggerImpl.h 35242 2010-12-20 13:33:23Z 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(HWVirtExEnabled)) (BOOL *aEnabled);
68 STDMETHOD(COMGETTER(HWVirtExNestedPagingEnabled)) (BOOL *aEnabled);
69 STDMETHOD(COMGETTER(HWVirtExVPIDEnabled)) (BOOL *aEnabled);
70 STDMETHOD(COMGETTER(PAEEnabled)) (BOOL *aEnabled);
71 STDMETHOD(COMGETTER(VirtualTimeRate)) (ULONG *aPct);
72 STDMETHOD(COMSETTER(VirtualTimeRate)) (ULONG aPct);
73 STDMETHOD(COMGETTER(VM)) (LONG64 *aVm);
74
75 // IMachineDebugger methods
76 STDMETHOD(DumpGuestCore)(IN_BSTR a_bstrFilename, IN_BSTR a_bstrCompression);
77 STDMETHOD(DumpHostProcessCore)(IN_BSTR a_bstrFilename, IN_BSTR a_bstrCompression);
78 STDMETHOD(Info)(IN_BSTR a_bstrName, IN_BSTR a_bstrArgs, BSTR *a_bstrInfo);
79 STDMETHOD(InjectNMI)();
80 STDMETHOD(ReadPhysicalMemory)(LONG64 a_Address, ULONG a_cbRead, ComSafeArrayOut(BYTE, a_abData));
81 STDMETHOD(WritePhysicalMemory)(LONG64 a_Address, ULONG a_cbRead, ComSafeArrayIn(BYTE, a_abData));
82 STDMETHOD(ReadVirtualMemory)(ULONG a_idCpu, LONG64 a_Address, ULONG a_cbRead, ComSafeArrayOut(BYTE, a_abData));
83 STDMETHOD(WriteVirtualMemory)(ULONG a_idCpu, LONG64 a_Address, ULONG a_cbRead, ComSafeArrayIn(BYTE, a_abData));
84 STDMETHOD(GetRegister)(ULONG a_idCpu, IN_BSTR a_bstrName, BSTR *a_pbstrValue);
85 STDMETHOD(GetRegisters)(ULONG a_idCpu, ComSafeArrayOut(BSTR, a_bstrNames), ComSafeArrayOut(BSTR, a_bstrValues));
86 STDMETHOD(SetRegister)(ULONG a_idCpu, IN_BSTR a_bstrName, IN_BSTR a_bstrValue);
87 STDMETHOD(SetRegisters)(ULONG a_idCpu, ComSafeArrayIn(IN_BSTR, a_bstrNames), ComSafeArrayIn(IN_BSTR, a_bstrValues));
88 STDMETHOD(ResetStats)(IN_BSTR aPattern);
89 STDMETHOD(DumpStats)(IN_BSTR aPattern);
90 STDMETHOD(GetStats)(IN_BSTR aPattern, BOOL aWithDescriptions, BSTR *aStats);
91
92
93 // "public-private methods"
94 void flushQueuedSettings();
95
96private:
97 // private methods
98 bool queueSettings() const;
99
100 Console * const mParent;
101 // flags whether settings have been queued because
102 // they could not be sent to the VM (not up yet, etc.)
103 int mSinglestepQueued;
104 int mRecompileUserQueued;
105 int mRecompileSupervisorQueued;
106 int mPatmEnabledQueued;
107 int mCsamEnabledQueued;
108 int mLogEnabledQueued;
109 uint32_t mVirtualTimeRateQueued;
110 bool mFlushMode;
111};
112
113#endif /* ____H_MACHINEDEBUGGER */
114/* vi: set tabstop=4 shiftwidth=4 expandtab: */
Note: See TracBrowser for help on using the repository browser.

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