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 |
|
---|
21 | CPUMDECL(uint32_t) CPUMGetGuestCR3(PVM pVM)
|
---|
22 | {
|
---|
23 | return 0;
|
---|
24 | }
|
---|
25 |
|
---|
26 | CPUMDECL(uint32_t) CPUMGetGuestCR4(PVM pVM)
|
---|
27 | {
|
---|
28 | return 0;
|
---|
29 | }
|
---|
30 |
|
---|
31 | CPUMDECL(RTSEL) CPUMGetGuestCS(PVM pVM)
|
---|
32 | {
|
---|
33 | return 0;
|
---|
34 | }
|
---|
35 |
|
---|
36 | CPUMDECL(PCCPUMCTXCORE) CPUMGetGuestCtxCore(PVM pVM)
|
---|
37 | {
|
---|
38 | return NULL;
|
---|
39 | }
|
---|
40 |
|
---|
41 | CPUMDECL(uint32_t) CPUMGetGuestEIP(PVM pVM)
|
---|
42 | {
|
---|
43 | return 0;
|
---|
44 | }
|
---|
45 |
|
---|
46 | CPUMDECL(uint32_t) CPUMGetGuestIDTR(PVM pVM, uint16_t *pcbLimit)
|
---|
47 | {
|
---|
48 | return 0;
|
---|
49 | }
|
---|
50 |
|
---|
51 | CPUMDECL(CPUMMODE) CPUMGetGuestMode(PVM pVM)
|
---|
52 | {
|
---|
53 | return CPUMMODE_INVALID;
|
---|
54 | }
|
---|
55 |
|
---|
56 | CPUMDECL(RTSEL) CPUMGetHyperCS(PVM pVM)
|
---|
57 | {
|
---|
58 | return 0xfff8;
|
---|
59 | }
|
---|
60 |
|
---|
61 | CPUMDECL(PCCPUMCTXCORE) CPUMGetHyperCtxCore(PVM pVM)
|
---|
62 | {
|
---|
63 | return NULL;
|
---|
64 | }
|
---|
65 |
|
---|
66 | CPUMDECL(uint32_t) CPUMGetHyperEIP(PVM pVM)
|
---|
67 | {
|
---|
68 | return 0;
|
---|
69 | }
|
---|
70 |
|
---|
71 | CPUMDECL(int) CPUMQueryGuestCtxPtr(PVM pVM, PCPUMCTX *ppCtx)
|
---|
72 | {
|
---|
73 | return VERR_INTERNAL_ERROR;
|
---|
74 | }
|
---|
75 |
|
---|
76 | CPUMDECL(int) CPUMQueryHyperCtxPtr(PVM pVM, PCPUMCTX *ppCtx)
|
---|
77 | {
|
---|
78 | return VERR_INTERNAL_ERROR;
|
---|
79 | }
|
---|
80 |
|
---|
81 |
|
---|
82 | #include <VBox/mm.h>
|
---|
83 |
|
---|
84 | MMR3DECL(int) MMR3HCPhys2HCVirt(PVM pVM, RTHCPHYS HCPhys, void **ppv)
|
---|
85 | {
|
---|
86 | return VERR_INTERNAL_ERROR;
|
---|
87 | }
|
---|
88 |
|
---|
89 | MMR3DECL(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 |
|
---|
97 | SELMR3DECL(int) SELMR3GetSelectorInfo(PVM pVM, RTSEL Sel, PSELMSELINFO pSelInfo)
|
---|
98 | {
|
---|
99 | return VERR_INTERNAL_ERROR;
|
---|
100 | }
|
---|
101 |
|
---|
102 |
|
---|
103 | #include <VBox/pgm.h>
|
---|
104 |
|
---|
105 | PGMDECL(uint32_t) PGMGetHyperCR3(PVM pVM)
|
---|
106 | {
|
---|
107 | return 0;
|
---|
108 | }
|
---|
109 |
|
---|
110 | PGMDECL(PGMMODE) PGMGetShadowMode(PVM pVM)
|
---|
111 | {
|
---|
112 | return PGMMODE_INVALID;
|
---|
113 | }
|
---|
114 |
|
---|
115 | PGMDECL(int) PGMPhysGCPhys2HCPhys(PVM pVM, RTGCPHYS GCPhys, PRTHCPHYS pHCPhys)
|
---|
116 | {
|
---|
117 | return VERR_INTERNAL_ERROR;
|
---|
118 | }
|
---|
119 |
|
---|
120 | PGMDECL(int) PGMPhysGCPhys2HCPtr(PVM pVM, RTGCPHYS GCPhys, RTUINT cbRange, PRTHCPTR pHCPtr)
|
---|
121 | {
|
---|
122 | return VERR_INTERNAL_ERROR;
|
---|
123 | }
|
---|
124 |
|
---|
125 | PGMDECL(int) PGMPhysGCPtr2GCPhys(PVM pVM, RTGCPTR GCPtr, PRTGCPHYS pGCPhys)
|
---|
126 | {
|
---|
127 | return VERR_INTERNAL_ERROR;
|
---|
128 | }
|
---|
129 |
|
---|
130 | PGMDECL(int) PGMPhysGCPtr2HCPhys(PVM pVM, RTGCPTR GCPtr, PRTHCPHYS pHCPhys)
|
---|
131 | {
|
---|
132 | return VERR_INTERNAL_ERROR;
|
---|
133 | }
|
---|
134 |
|
---|
135 | PGMDECL(int) PGMPhysGCPtr2HCPtr(PVM pVM, RTGCPTR GCPtr, PRTHCPTR pHCPtr)
|
---|
136 | {
|
---|
137 | return VERR_INTERNAL_ERROR;
|
---|
138 | }
|
---|
139 |
|
---|
140 | PGMDECL(int) PGMPhysReadGCPhys(PVM pVM, void *pvDst, RTGCPHYS GCPhysSrc, size_t cb)
|
---|
141 | {
|
---|
142 | return VERR_INTERNAL_ERROR;
|
---|
143 | }
|
---|
144 |
|
---|
145 | PGMR3DECL(int) PGMR3DbgHCPtr2GCPhys(PVM pVM, RTHCPTR HCPtr, PRTGCPHYS pGCPhys)
|
---|
146 | {
|
---|
147 | return VERR_INTERNAL_ERROR;
|
---|
148 | }
|
---|
149 |
|
---|
150 | PGMR3DECL(int) PGMR3DbgHCPtr2HCPhys(PVM pVM, RTHCPTR HCPtr, PRTHCPHYS pHCPhys)
|
---|
151 | {
|
---|
152 | return VERR_INTERNAL_ERROR;
|
---|
153 | }
|
---|
154 |
|
---|
155 |
|
---|
156 | #include <VBox/dbgf.h>
|
---|
157 | DBGFR3DECL(void) DBGFR3AddrFromFlat(PVM pVM, PDBGFADDRESS pAddress, RTGCUINTPTR FlatPtr)
|
---|
158 | {
|
---|
159 | }
|
---|
160 |
|
---|
161 | DBGFR3DECL(int) DBGFR3AddrFromSelOff(PVM pVM, PDBGFADDRESS pAddress, RTSEL Sel, RTUINTPTR off)
|
---|
162 | {
|
---|
163 | return VERR_INTERNAL_ERROR;
|
---|
164 | }
|
---|
165 |
|
---|
166 | DBGFR3DECL(int) DBGFR3Attach(PVM pVM)
|
---|
167 | {
|
---|
168 | return VERR_INTERNAL_ERROR;
|
---|
169 | }
|
---|
170 |
|
---|
171 | DBGFR3DECL(int) DBGFR3BpClear(PVM pVM, RTUINT iBp)
|
---|
172 | {
|
---|
173 | return VERR_INTERNAL_ERROR;
|
---|
174 | }
|
---|
175 | DBGFR3DECL(int) DBGFR3BpDisable(PVM pVM, RTUINT iBp)
|
---|
176 | {
|
---|
177 | return VERR_INTERNAL_ERROR;
|
---|
178 | }
|
---|
179 | DBGFR3DECL(int) DBGFR3BpEnable(PVM pVM, RTUINT iBp)
|
---|
180 | {
|
---|
181 | return VERR_INTERNAL_ERROR;
|
---|
182 | }
|
---|
183 | DBGFR3DECL(int) DBGFR3BpEnum(PVM pVM, PFNDBGFBPENUM pfnCallback, void *pvUser)
|
---|
184 | {
|
---|
185 | return VERR_INTERNAL_ERROR;
|
---|
186 | }
|
---|
187 | DBGFR3DECL(int) DBGFR3BpSet(PVM pVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable, PRTUINT piBp)
|
---|
188 | {
|
---|
189 | return VERR_INTERNAL_ERROR;
|
---|
190 | }
|
---|
191 | DBGFR3DECL(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 | }
|
---|
196 | DBGFR3DECL(int) DBGFR3BpSetREM(PVM pVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable, PRTUINT piBp)
|
---|
197 | {
|
---|
198 | return VERR_INTERNAL_ERROR;
|
---|
199 | }
|
---|
200 | DBGFR3DECL(bool) DBGFR3CanWait(PVM pVM)
|
---|
201 | {
|
---|
202 | return true;
|
---|
203 | }
|
---|
204 | DBGFR3DECL(int) DBGFR3Detach(PVM pVM)
|
---|
205 | {
|
---|
206 | return VERR_INTERNAL_ERROR;
|
---|
207 | }
|
---|
208 | DBGFR3DECL(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 | }
|
---|
212 | DBGFR3DECL(int) DBGFR3EventWait(PVM pVM, unsigned cMillies, PCDBGFEVENT *ppEvent)
|
---|
213 | {
|
---|
214 | return VERR_INTERNAL_ERROR;
|
---|
215 | }
|
---|
216 | DBGFR3DECL(int) DBGFR3Halt(PVM pVM)
|
---|
217 | {
|
---|
218 | return VERR_INTERNAL_ERROR;
|
---|
219 | }
|
---|
220 | DBGFR3DECL(int) DBGFR3Info(PVM pVM, const char *pszName, const char *pszArgs, PCDBGFINFOHLP pHlp)
|
---|
221 | {
|
---|
222 | return VERR_INTERNAL_ERROR;
|
---|
223 | }
|
---|
224 | DBGFR3DECL(bool) DBGFR3IsHalted(PVM pVM)
|
---|
225 | {
|
---|
226 | return true;
|
---|
227 | }
|
---|
228 | DBGFR3DECL(int) DBGFR3LineByAddr(PVM pVM, RTGCUINTPTR Address, PRTGCINTPTR poffDisplacement, PDBGFLINE pLine)
|
---|
229 | {
|
---|
230 | return VERR_INTERNAL_ERROR;
|
---|
231 | }
|
---|
232 | DBGFR3DECL(int) DBGFR3LogModifyDestinations(PVM pVM, const char *pszDestSettings)
|
---|
233 | {
|
---|
234 | return VERR_INTERNAL_ERROR;
|
---|
235 | }
|
---|
236 | DBGFR3DECL(int) DBGFR3LogModifyFlags(PVM pVM, const char *pszFlagSettings)
|
---|
237 | {
|
---|
238 | return VERR_INTERNAL_ERROR;
|
---|
239 | }
|
---|
240 | DBGFR3DECL(int) DBGFR3LogModifyGroups(PVM pVM, const char *pszGroupSettings)
|
---|
241 | {
|
---|
242 | return VERR_INTERNAL_ERROR;
|
---|
243 | }
|
---|
244 | DBGFR3DECL(int) DBGFR3ModuleLoad(PVM pVM, const char *pszFilename, RTGCUINTPTR AddressDelta, const char *pszName, RTGCUINTPTR ModuleAddress, unsigned cbImage)
|
---|
245 | {
|
---|
246 | return VERR_INTERNAL_ERROR;
|
---|
247 | }
|
---|
248 | DBGFR3DECL(int) DBGFR3Resume(PVM pVM)
|
---|
249 | {
|
---|
250 | return VERR_INTERNAL_ERROR;
|
---|
251 | }
|
---|
252 | DBGFR3DECL(int) DBGFR3StackWalkBeginGuest(PVM pVM, PDBGFSTACKFRAME pFrame)
|
---|
253 | {
|
---|
254 | return VERR_INTERNAL_ERROR;
|
---|
255 | }
|
---|
256 | DBGFR3DECL(int) DBGFR3StackWalkBeginHyper(PVM pVM, PDBGFSTACKFRAME pFrame)
|
---|
257 | {
|
---|
258 | return VERR_INTERNAL_ERROR;
|
---|
259 | }
|
---|
260 | DBGFR3DECL(int) DBGFR3StackWalkNext(PVM pVM, PDBGFSTACKFRAME pFrame)
|
---|
261 | {
|
---|
262 | return VERR_INTERNAL_ERROR;
|
---|
263 | }
|
---|
264 | DBGFR3DECL(int) DBGFR3Step(PVM pVM)
|
---|
265 | {
|
---|
266 | return VERR_INTERNAL_ERROR;
|
---|
267 | }
|
---|
268 | DBGFR3DECL(int) DBGFR3SymbolByAddr(PVM pVM, RTGCUINTPTR Address, PRTGCINTPTR poffDisplacement, PDBGFSYMBOL pSymbol)
|
---|
269 | {
|
---|
270 | return VERR_INTERNAL_ERROR;
|
---|
271 | }
|
---|
272 | DBGFR3DECL(int) DBGFR3SymbolByName(PVM pVM, const char *pszSymbol, PDBGFSYMBOL pSymbol)
|
---|
273 | {
|
---|
274 | return VERR_INTERNAL_ERROR;
|
---|
275 | }
|
---|
276 | DBGFR3DECL(int) DBGFR3MemScan(PVM pVM, PCDBGFADDRESS pAddress, RTGCUINTPTR cbRange, const uint8_t *pabNeedle, size_t cbNeedle, PDBGFADDRESS pHitAddress)
|
---|
277 | {
|
---|
278 | return VERR_INTERNAL_ERROR;
|
---|
279 | }
|
---|
280 | DBGFR3DECL(void) DBGFR3AddrFromPhys(PVM pVM, PDBGFADDRESS pAddress, RTGCPHYS PhysAddr)
|
---|
281 | {
|
---|
282 | }
|
---|