VirtualBox

source: vbox/trunk/src/VBox/Debugger/testcase/tstDBGCStubs.cpp@ 7830

Last change on this file since 7830 was 6000, checked in by vboxsync, 17 years ago

The Giant CDDL Dual-License Header Change, fixes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.5 KB
Line 
1/* $Id: tstDBGCStubs.cpp 6000 2007-12-07 15:12:49Z vboxsync $ */
2/** @file
3 * DBGC Testcase - Command Parser, VMM Stub Functions.
4 */
5
6/*
7 * Copyright (C) 2007 knut st. osmundsen <[email protected]>
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#include <VBox/err.h>
19#include <VBox/cpum.h>
20
21CPUMDECL(uint32_t) CPUMGetGuestCR3(PVM pVM)
22{
23 return 0;
24}
25
26CPUMDECL(uint32_t) CPUMGetGuestCR4(PVM pVM)
27{
28 return 0;
29}
30
31CPUMDECL(RTSEL) CPUMGetGuestCS(PVM pVM)
32{
33 return 0;
34}
35
36CPUMDECL(PCCPUMCTXCORE) CPUMGetGuestCtxCore(PVM pVM)
37{
38 return NULL;
39}
40
41CPUMDECL(uint32_t) CPUMGetGuestEIP(PVM pVM)
42{
43 return 0;
44}
45
46CPUMDECL(uint32_t) CPUMGetGuestIDTR(PVM pVM, uint16_t *pcbLimit)
47{
48 return 0;
49}
50
51CPUMDECL(CPUMMODE) CPUMGetGuestMode(PVM pVM)
52{
53 return CPUMMODE_INVALID;
54}
55
56CPUMDECL(RTSEL) CPUMGetHyperCS(PVM pVM)
57{
58 return 0xfff8;
59}
60
61CPUMDECL(PCCPUMCTXCORE) CPUMGetHyperCtxCore(PVM pVM)
62{
63 return NULL;
64}
65
66CPUMDECL(uint32_t) CPUMGetHyperEIP(PVM pVM)
67{
68 return 0;
69}
70
71CPUMDECL(int) CPUMQueryGuestCtxPtr(PVM pVM, PCPUMCTX *ppCtx)
72{
73 return VERR_INTERNAL_ERROR;
74}
75
76CPUMDECL(int) CPUMQueryHyperCtxPtr(PVM pVM, PCPUMCTX *ppCtx)
77{
78 return VERR_INTERNAL_ERROR;
79}
80
81
82#include <VBox/mm.h>
83
84MMR3DECL(int) MMR3HCPhys2HCVirt(PVM pVM, RTHCPHYS HCPhys, void **ppv)
85{
86 return VERR_INTERNAL_ERROR;
87}
88
89MMR3DECL(int) MMR3ReadGCVirt(PVM pVM, void *pvDst, RTGCPTR GCPtr, size_t cb)
90{
91 return VERR_INTERNAL_ERROR;
92}
93
94
95#include <VBox/selm.h>
96
97SELMR3DECL(int) SELMR3GetSelectorInfo(PVM pVM, RTSEL Sel, PSELMSELINFO pSelInfo)
98{
99 return VERR_INTERNAL_ERROR;
100}
101
102
103#include <VBox/pgm.h>
104
105PGMDECL(uint32_t) PGMGetHyperCR3(PVM pVM)
106{
107 return 0;
108}
109
110PGMDECL(PGMMODE) PGMGetShadowMode(PVM pVM)
111{
112 return PGMMODE_INVALID;
113}
114
115PGMDECL(int) PGMPhysGCPhys2HCPhys(PVM pVM, RTGCPHYS GCPhys, PRTHCPHYS pHCPhys)
116{
117 return VERR_INTERNAL_ERROR;
118}
119
120PGMDECL(int) PGMPhysGCPhys2HCPtr(PVM pVM, RTGCPHYS GCPhys, RTUINT cbRange, PRTHCPTR pHCPtr)
121{
122 return VERR_INTERNAL_ERROR;
123}
124
125PGMDECL(int) PGMPhysGCPtr2GCPhys(PVM pVM, RTGCPTR GCPtr, PRTGCPHYS pGCPhys)
126{
127 return VERR_INTERNAL_ERROR;
128}
129
130PGMDECL(int) PGMPhysGCPtr2HCPhys(PVM pVM, RTGCPTR GCPtr, PRTHCPHYS pHCPhys)
131{
132 return VERR_INTERNAL_ERROR;
133}
134
135PGMDECL(int) PGMPhysGCPtr2HCPtr(PVM pVM, RTGCPTR GCPtr, PRTHCPTR pHCPtr)
136{
137 return VERR_INTERNAL_ERROR;
138}
139
140PGMDECL(int) PGMPhysReadGCPhys(PVM pVM, void *pvDst, RTGCPHYS GCPhysSrc, size_t cb)
141{
142 return VERR_INTERNAL_ERROR;
143}
144
145PGMR3DECL(int) PGMR3DbgHCPtr2GCPhys(PVM pVM, RTHCPTR HCPtr, PRTGCPHYS pGCPhys)
146{
147 return VERR_INTERNAL_ERROR;
148}
149
150PGMR3DECL(int) PGMR3DbgHCPtr2HCPhys(PVM pVM, RTHCPTR HCPtr, PRTHCPHYS pHCPhys)
151{
152 return VERR_INTERNAL_ERROR;
153}
154
155
156#include <VBox/dbgf.h>
157DBGFR3DECL(void) DBGFR3AddrFromFlat(PVM pVM, PDBGFADDRESS pAddress, RTGCUINTPTR FlatPtr)
158{
159}
160
161DBGFR3DECL(int) DBGFR3AddrFromSelOff(PVM pVM, PDBGFADDRESS pAddress, RTSEL Sel, RTUINTPTR off)
162{
163 return VERR_INTERNAL_ERROR;
164}
165
166DBGFR3DECL(int) DBGFR3Attach(PVM pVM)
167{
168 return VERR_INTERNAL_ERROR;
169}
170
171DBGFR3DECL(int) DBGFR3BpClear(PVM pVM, RTUINT iBp)
172{
173 return VERR_INTERNAL_ERROR;
174}
175DBGFR3DECL(int) DBGFR3BpDisable(PVM pVM, RTUINT iBp)
176{
177 return VERR_INTERNAL_ERROR;
178}
179DBGFR3DECL(int) DBGFR3BpEnable(PVM pVM, RTUINT iBp)
180{
181 return VERR_INTERNAL_ERROR;
182}
183DBGFR3DECL(int) DBGFR3BpEnum(PVM pVM, PFNDBGFBPENUM pfnCallback, void *pvUser)
184{
185 return VERR_INTERNAL_ERROR;
186}
187DBGFR3DECL(int) DBGFR3BpSet(PVM pVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable, PRTUINT piBp)
188{
189 return VERR_INTERNAL_ERROR;
190}
191DBGFR3DECL(int) DBGFR3BpSetReg(PVM pVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable,
192 uint8_t fType, uint8_t cb, PRTUINT piBp)
193{
194 return VERR_INTERNAL_ERROR;
195}
196DBGFR3DECL(int) DBGFR3BpSetREM(PVM pVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable, PRTUINT piBp)
197{
198 return VERR_INTERNAL_ERROR;
199}
200DBGFR3DECL(bool) DBGFR3CanWait(PVM pVM)
201{
202 return true;
203}
204DBGFR3DECL(int) DBGFR3Detach(PVM pVM)
205{
206 return VERR_INTERNAL_ERROR;
207}
208DBGFR3DECL(int) DBGFR3DisasInstrEx(PVM pVM, RTSEL Sel, RTGCPTR GCPtr, unsigned fFlags, char *pszOutput, uint32_t cchOutput, uint32_t *pcbInstr)
209{
210 return VERR_INTERNAL_ERROR;
211}
212DBGFR3DECL(int) DBGFR3EventWait(PVM pVM, unsigned cMillies, PCDBGFEVENT *ppEvent)
213{
214 return VERR_INTERNAL_ERROR;
215}
216DBGFR3DECL(int) DBGFR3Halt(PVM pVM)
217{
218 return VERR_INTERNAL_ERROR;
219}
220DBGFR3DECL(int) DBGFR3Info(PVM pVM, const char *pszName, const char *pszArgs, PCDBGFINFOHLP pHlp)
221{
222 return VERR_INTERNAL_ERROR;
223}
224DBGFR3DECL(bool) DBGFR3IsHalted(PVM pVM)
225{
226 return true;
227}
228DBGFR3DECL(int) DBGFR3LineByAddr(PVM pVM, RTGCUINTPTR Address, PRTGCINTPTR poffDisplacement, PDBGFLINE pLine)
229{
230 return VERR_INTERNAL_ERROR;
231}
232DBGFR3DECL(int) DBGFR3LogModifyDestinations(PVM pVM, const char *pszDestSettings)
233{
234 return VERR_INTERNAL_ERROR;
235}
236DBGFR3DECL(int) DBGFR3LogModifyFlags(PVM pVM, const char *pszFlagSettings)
237{
238 return VERR_INTERNAL_ERROR;
239}
240DBGFR3DECL(int) DBGFR3LogModifyGroups(PVM pVM, const char *pszGroupSettings)
241{
242 return VERR_INTERNAL_ERROR;
243}
244DBGFR3DECL(int) DBGFR3ModuleLoad(PVM pVM, const char *pszFilename, RTGCUINTPTR AddressDelta, const char *pszName, RTGCUINTPTR ModuleAddress, unsigned cbImage)
245{
246 return VERR_INTERNAL_ERROR;
247}
248DBGFR3DECL(int) DBGFR3Resume(PVM pVM)
249{
250 return VERR_INTERNAL_ERROR;
251}
252DBGFR3DECL(int) DBGFR3StackWalkBeginGuest(PVM pVM, PDBGFSTACKFRAME pFrame)
253{
254 return VERR_INTERNAL_ERROR;
255}
256DBGFR3DECL(int) DBGFR3StackWalkBeginHyper(PVM pVM, PDBGFSTACKFRAME pFrame)
257{
258 return VERR_INTERNAL_ERROR;
259}
260DBGFR3DECL(int) DBGFR3StackWalkNext(PVM pVM, PDBGFSTACKFRAME pFrame)
261{
262 return VERR_INTERNAL_ERROR;
263}
264DBGFR3DECL(int) DBGFR3Step(PVM pVM)
265{
266 return VERR_INTERNAL_ERROR;
267}
268DBGFR3DECL(int) DBGFR3SymbolByAddr(PVM pVM, RTGCUINTPTR Address, PRTGCINTPTR poffDisplacement, PDBGFSYMBOL pSymbol)
269{
270 return VERR_INTERNAL_ERROR;
271}
272DBGFR3DECL(int) DBGFR3SymbolByName(PVM pVM, const char *pszSymbol, PDBGFSYMBOL pSymbol)
273{
274 return VERR_INTERNAL_ERROR;
275}
276DBGFR3DECL(int) DBGFR3MemScan(PVM pVM, PCDBGFADDRESS pAddress, RTGCUINTPTR cbRange, const uint8_t *pabNeedle, size_t cbNeedle, PDBGFADDRESS pHitAddress)
277{
278 return VERR_INTERNAL_ERROR;
279}
280DBGFR3DECL(void) DBGFR3AddrFromPhys(PVM pVM, PDBGFADDRESS pAddress, RTGCPHYS PhysAddr)
281{
282}
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