1 | /* $Id: tstDBGCStubs.cpp 73348 2018-07-25 09:25:45Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * DBGC Testcase - Command Parser, VMM Stub Functions.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-2017 Oracle Corporation
|
---|
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/vmm/vm.h>
|
---|
20 | #include <iprt/string.h>
|
---|
21 |
|
---|
22 |
|
---|
23 |
|
---|
24 | #include <VBox/vmm/dbgf.h>
|
---|
25 | VMMR3DECL(PDBGFADDRESS) DBGFR3AddrFromFlat(PUVM pUVM, PDBGFADDRESS pAddress, RTGCUINTPTR FlatPtr)
|
---|
26 | {
|
---|
27 | return NULL;
|
---|
28 | }
|
---|
29 |
|
---|
30 | VMMR3DECL(int) DBGFR3AddrFromSelOff(PUVM pUVM, VMCPUID idCpu, PDBGFADDRESS pAddress, RTSEL Sel, RTUINTPTR off)
|
---|
31 | {
|
---|
32 | /* bad:bad -> provke error during parsing. */
|
---|
33 | if (Sel == 0xbad && off == 0xbad)
|
---|
34 | return VERR_OUT_OF_SELECTOR_BOUNDS;
|
---|
35 |
|
---|
36 | /* real mode conversion. */
|
---|
37 | pAddress->FlatPtr = (uint32_t)(Sel << 4) | off;
|
---|
38 | pAddress->fFlags |= DBGFADDRESS_FLAGS_FLAT;
|
---|
39 | pAddress->Sel = DBGF_SEL_FLAT;
|
---|
40 | pAddress->off = pAddress->FlatPtr;
|
---|
41 | return VINF_SUCCESS;
|
---|
42 | }
|
---|
43 |
|
---|
44 | VMMR3DECL(int) DBGFR3AddrToPhys(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, PRTGCPHYS pGCPhys)
|
---|
45 | {
|
---|
46 | return VERR_INTERNAL_ERROR;
|
---|
47 | }
|
---|
48 |
|
---|
49 | VMMR3DECL(int) DBGFR3Attach(PUVM pUVM)
|
---|
50 | {
|
---|
51 | return VERR_INTERNAL_ERROR;
|
---|
52 | }
|
---|
53 |
|
---|
54 | VMMR3DECL(int) DBGFR3BpClear(PUVM pUVM, RTUINT iBp)
|
---|
55 | {
|
---|
56 | return VERR_INTERNAL_ERROR;
|
---|
57 | }
|
---|
58 | VMMR3DECL(int) DBGFR3BpDisable(PUVM pUVM, RTUINT iBp)
|
---|
59 | {
|
---|
60 | return VERR_INTERNAL_ERROR;
|
---|
61 | }
|
---|
62 | VMMR3DECL(int) DBGFR3BpEnable(PUVM pUVM, RTUINT iBp)
|
---|
63 | {
|
---|
64 | return VERR_INTERNAL_ERROR;
|
---|
65 | }
|
---|
66 | VMMR3DECL(int) DBGFR3BpEnum(PUVM pUVM, PFNDBGFBPENUM pfnCallback, void *pvUser)
|
---|
67 | {
|
---|
68 | return VERR_INTERNAL_ERROR;
|
---|
69 | }
|
---|
70 | VMMR3DECL(int) DBGFR3BpSetInt3(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable, PRTUINT piBp)
|
---|
71 | {
|
---|
72 | return VERR_INTERNAL_ERROR;
|
---|
73 | }
|
---|
74 | VMMR3DECL(int) DBGFR3BpSetReg(PUVM pUVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable,
|
---|
75 | uint8_t fType, uint8_t cb, PRTUINT piBp)
|
---|
76 | {
|
---|
77 | return VERR_INTERNAL_ERROR;
|
---|
78 | }
|
---|
79 | VMMR3DECL(int) DBGFR3BpSetREM(PUVM pUVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable, PRTUINT piBp)
|
---|
80 | {
|
---|
81 | return VERR_INTERNAL_ERROR;
|
---|
82 | }
|
---|
83 | VMMR3DECL(int) DBGFR3QueryWaitable(PUVM pUVM)
|
---|
84 | {
|
---|
85 | return VINF_SUCCESS;
|
---|
86 | }
|
---|
87 | VMMR3DECL(int) DBGFR3Detach(PUVM pUVM)
|
---|
88 | {
|
---|
89 | return VERR_INTERNAL_ERROR;
|
---|
90 | }
|
---|
91 | VMMR3DECL(int) DBGFR3DisasInstrEx(PUVM pUVM, VMCPUID idCpu, RTSEL Sel, RTGCPTR GCPtr, uint32_t fFlags,
|
---|
92 | char *pszOutput, uint32_t cchOutput, uint32_t *pcbInstr)
|
---|
93 | {
|
---|
94 | return VERR_INTERNAL_ERROR;
|
---|
95 | }
|
---|
96 | VMMR3DECL(int) DBGFR3EventWait(PUVM pUVM, RTMSINTERVAL cMillies, PCDBGFEVENT *ppEvent)
|
---|
97 | {
|
---|
98 | return VERR_INTERNAL_ERROR;
|
---|
99 | }
|
---|
100 | VMMR3DECL(int) DBGFR3EventConfigEx(PUVM pUVM, PCDBGFEVENTCONFIG paConfigs, size_t cConfigs)
|
---|
101 | {
|
---|
102 | return VERR_INTERNAL_ERROR;
|
---|
103 | }
|
---|
104 | VMMR3DECL(int) DBGFR3InterruptConfigEx(PUVM pUVM, PCDBGFINTERRUPTCONFIG paConfigs, size_t cConfigs)
|
---|
105 | {
|
---|
106 | return VERR_INTERNAL_ERROR;
|
---|
107 | }
|
---|
108 |
|
---|
109 | VMMR3DECL(int) DBGFR3Halt(PUVM pUVM)
|
---|
110 | {
|
---|
111 | return VERR_INTERNAL_ERROR;
|
---|
112 | }
|
---|
113 | VMMR3DECL(int) DBGFR3Info(PUVM pUVM, const char *pszName, const char *pszArgs, PCDBGFINFOHLP pHlp)
|
---|
114 | {
|
---|
115 | return VERR_INTERNAL_ERROR;
|
---|
116 | }
|
---|
117 | VMMR3DECL(int) DBGFR3InfoEx(PUVM pUVM, VMCPUID idCpu, const char *pszName, const char *pszArgs, PCDBGFINFOHLP pHlp)
|
---|
118 | {
|
---|
119 | return VERR_INTERNAL_ERROR;
|
---|
120 | }
|
---|
121 | VMMR3DECL(bool) DBGFR3IsHalted(PUVM pUVM)
|
---|
122 | {
|
---|
123 | return true;
|
---|
124 | }
|
---|
125 | VMMR3DECL(int) DBGFR3LogModifyDestinations(PUVM pUVM, const char *pszDestSettings)
|
---|
126 | {
|
---|
127 | return VERR_INTERNAL_ERROR;
|
---|
128 | }
|
---|
129 | VMMR3DECL(int) DBGFR3LogModifyFlags(PUVM pUVM, const char *pszFlagSettings)
|
---|
130 | {
|
---|
131 | return VERR_INTERNAL_ERROR;
|
---|
132 | }
|
---|
133 | VMMR3DECL(int) DBGFR3LogModifyGroups(PUVM pUVM, const char *pszGroupSettings)
|
---|
134 | {
|
---|
135 | return VERR_INTERNAL_ERROR;
|
---|
136 | }
|
---|
137 | VMMR3DECL(RTDBGCFG) DBGFR3AsGetConfig(PUVM pUVM)
|
---|
138 | {
|
---|
139 | return NIL_RTDBGCFG;
|
---|
140 | }
|
---|
141 | VMMR3DECL(int) DBGFR3AsLoadImage(PUVM pUVM, RTDBGAS hAS, const char *pszFilename, const char *pszModName, RTLDRARCH enmArch,
|
---|
142 | PCDBGFADDRESS pModAddress, RTDBGSEGIDX iModSeg, uint32_t fFlags)
|
---|
143 | {
|
---|
144 | return VERR_INTERNAL_ERROR;
|
---|
145 | }
|
---|
146 | VMMR3DECL(int) DBGFR3AsLoadMap(PUVM pUVM, RTDBGAS hAS, const char *pszFilename, const char *pszModName, PCDBGFADDRESS pModAddress, RTDBGSEGIDX iModSeg, RTGCUINTPTR uSubtrahend, uint32_t fFlags)
|
---|
147 | {
|
---|
148 | return VERR_INTERNAL_ERROR;
|
---|
149 | }
|
---|
150 | VMMR3DECL(int) DBGFR3AsUnlinkModuleByName(PUVM pUVM, RTDBGAS hDbgAs, const char *pszModName)
|
---|
151 | {
|
---|
152 | return VERR_INTERNAL_ERROR;
|
---|
153 | }
|
---|
154 | VMMR3DECL(RTDBGAS) DBGFR3AsResolveAndRetain(PUVM pUVM, RTDBGAS hAlias)
|
---|
155 | {
|
---|
156 | return NIL_RTDBGAS;
|
---|
157 | }
|
---|
158 | VMMR3DECL(int) DBGFR3AsLineByAddr(PUVM pUVM, RTDBGAS hDbgAs, PCDBGFADDRESS pAddress,
|
---|
159 | PRTGCINTPTR poffDisp, PRTDBGLINE pLine, PRTDBGMOD phMod)
|
---|
160 | {
|
---|
161 | return VERR_DBG_LINE_NOT_FOUND;
|
---|
162 | }
|
---|
163 | VMMR3DECL(int) DBGFR3Resume(PUVM pUVM)
|
---|
164 | {
|
---|
165 | return VERR_INTERNAL_ERROR;
|
---|
166 | }
|
---|
167 | VMMR3DECL(int) DBGFR3StackWalkBegin(PUVM pUVM, VMCPUID idCpu, DBGFCODETYPE enmCodeType, PCDBGFSTACKFRAME *ppFirstFrame)
|
---|
168 | {
|
---|
169 | return VERR_INTERNAL_ERROR;
|
---|
170 | }
|
---|
171 | VMMR3DECL(PCDBGFSTACKFRAME) DBGFR3StackWalkNext(PCDBGFSTACKFRAME pCurrent)
|
---|
172 | {
|
---|
173 | return NULL;
|
---|
174 | }
|
---|
175 | VMMR3DECL(void) DBGFR3StackWalkEnd(PCDBGFSTACKFRAME pFirstFrame)
|
---|
176 | {
|
---|
177 | }
|
---|
178 | VMMR3DECL(int) DBGFR3StepEx(PUVM pUVM, VMCPUID idCpu, uint32_t fFlags, PCDBGFADDRESS pStopPcAddr,
|
---|
179 | PCDBGFADDRESS pStopPopAddr, RTGCUINTPTR cbStopPop, uint32_t cMaxSteps)
|
---|
180 | {
|
---|
181 | return VERR_INTERNAL_ERROR;
|
---|
182 | }
|
---|
183 | VMMR3DECL(int) DBGFR3AsSymbolByAddr(PUVM pUVM, RTDBGAS hDbgAs, PCDBGFADDRESS pAddress, uint32_t fFlags, PRTGCINTPTR poffDisplacement, PRTDBGSYMBOL pSymbol, PRTDBGMOD phMod)
|
---|
184 | {
|
---|
185 | return VERR_INTERNAL_ERROR;
|
---|
186 | }
|
---|
187 | VMMR3DECL(int) DBGFR3AsSymbolByName(PUVM pUVM, RTDBGAS hDbgAs, const char *pszSymbol, PRTDBGSYMBOL pSymbol, PRTDBGMOD phMod)
|
---|
188 | {
|
---|
189 | return VERR_INTERNAL_ERROR;
|
---|
190 | }
|
---|
191 | VMMR3DECL(int) DBGFR3AsLinkModule(PUVM pUVM, RTDBGAS hDbgAs, RTDBGMOD hMod, PCDBGFADDRESS pModAddress, RTDBGSEGIDX iModSeg, uint32_t fFlags)
|
---|
192 | {
|
---|
193 | return VERR_INTERNAL_ERROR;
|
---|
194 | }
|
---|
195 | VMMR3DECL(int) DBGFR3ModInMem(PUVM pUVM, PCDBGFADDRESS pImageAddr, uint32_t fFlags, const char *pszName,
|
---|
196 | RTLDRARCH enmArch, uint32_t cbImage, PRTDBGMOD phDbgMod, PRTERRINFO pErrInfo)
|
---|
197 | {
|
---|
198 | return VERR_INTERNAL_ERROR;
|
---|
199 | }
|
---|
200 | VMMR3DECL(int) DBGFR3MemScan(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, RTGCUINTPTR cbRange, RTGCUINTPTR uAlign, const void *pabNeedle, size_t cbNeedle, PDBGFADDRESS pHitAddress)
|
---|
201 | {
|
---|
202 | return VERR_INTERNAL_ERROR;
|
---|
203 | }
|
---|
204 | VMMR3DECL(int) DBGFR3MemRead(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, void *pvBuf, size_t cbRead)
|
---|
205 | {
|
---|
206 | return VERR_INTERNAL_ERROR;
|
---|
207 | }
|
---|
208 | VMMR3DECL(int) DBGFR3MemReadString(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, char *pszBuf, size_t cchBuf)
|
---|
209 | {
|
---|
210 | return VERR_INTERNAL_ERROR;
|
---|
211 | }
|
---|
212 | VMMR3DECL(int) DBGFR3MemWrite(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, const void *pvBuf, size_t cbRead)
|
---|
213 | {
|
---|
214 | return VERR_INTERNAL_ERROR;
|
---|
215 | }
|
---|
216 | VMMDECL(int) DBGFR3PagingDumpEx(PUVM pUVM, VMCPUID idCpu, uint32_t fFlags, uint64_t cr3, uint64_t u64FirstAddr,
|
---|
217 | uint64_t u64LastAddr, uint32_t cMaxDepth, PCDBGFINFOHLP pHlp)
|
---|
218 | {
|
---|
219 | return VERR_INTERNAL_ERROR;
|
---|
220 | }
|
---|
221 | VMMR3DECL(int) DBGFR3RegNmValidate(PUVM pUVM, VMCPUID idDefCpu, const char *pszReg)
|
---|
222 | {
|
---|
223 | if ( !strcmp(pszReg, "ah")
|
---|
224 | || !strcmp(pszReg, "ax")
|
---|
225 | || !strcmp(pszReg, "eax")
|
---|
226 | || !strcmp(pszReg, "rax"))
|
---|
227 | return VINF_SUCCESS;
|
---|
228 | return VERR_DBGF_REGISTER_NOT_FOUND;
|
---|
229 | }
|
---|
230 | VMMR3DECL(int) DBGFR3RegCpuQueryU8( PUVM pUVM, VMCPUID idCpu, DBGFREG enmReg, uint8_t *pu8)
|
---|
231 | {
|
---|
232 | return VERR_INTERNAL_ERROR;
|
---|
233 | }
|
---|
234 | VMMR3DECL(int) DBGFR3RegCpuQueryU16( PUVM pUVM, VMCPUID idCpu, DBGFREG enmReg, uint16_t *pu16)
|
---|
235 | {
|
---|
236 | return VERR_INTERNAL_ERROR;
|
---|
237 | }
|
---|
238 | VMMR3DECL(int) DBGFR3RegCpuQueryU32( PUVM pUVM, VMCPUID idCpu, DBGFREG enmReg, uint32_t *pu32)
|
---|
239 | {
|
---|
240 | return VERR_INTERNAL_ERROR;
|
---|
241 | }
|
---|
242 | VMMR3DECL(int) DBGFR3RegCpuQueryU64( PUVM pUVM, VMCPUID idCpu, DBGFREG enmReg, uint64_t *pu64)
|
---|
243 | {
|
---|
244 | return VERR_INTERNAL_ERROR;
|
---|
245 | }
|
---|
246 | VMMR3DECL(int) DBGFR3RegNmQuery(PUVM pUVM, VMCPUID idDefCpu, const char *pszReg, PDBGFREGVAL pValue, PDBGFREGVALTYPE penmType)
|
---|
247 | {
|
---|
248 | if (idDefCpu == 0 || idDefCpu == DBGFREG_HYPER_VMCPUID)
|
---|
249 | {
|
---|
250 | if (!strcmp(pszReg, "ah"))
|
---|
251 | {
|
---|
252 | pValue->u16 = 0xf0;
|
---|
253 | *penmType = DBGFREGVALTYPE_U8;
|
---|
254 | return VINF_SUCCESS;
|
---|
255 | }
|
---|
256 | if (!strcmp(pszReg, "ax"))
|
---|
257 | {
|
---|
258 | pValue->u16 = 0xbabe;
|
---|
259 | *penmType = DBGFREGVALTYPE_U16;
|
---|
260 | return VINF_SUCCESS;
|
---|
261 | }
|
---|
262 | if (!strcmp(pszReg, "eax"))
|
---|
263 | {
|
---|
264 | pValue->u32 = 0xcafebabe;
|
---|
265 | *penmType = DBGFREGVALTYPE_U32;
|
---|
266 | return VINF_SUCCESS;
|
---|
267 | }
|
---|
268 | if (!strcmp(pszReg, "rax"))
|
---|
269 | {
|
---|
270 | pValue->u64 = UINT64_C(0x00beef00feedface);
|
---|
271 | *penmType = DBGFREGVALTYPE_U32;
|
---|
272 | return VINF_SUCCESS;
|
---|
273 | }
|
---|
274 | }
|
---|
275 | return VERR_DBGF_REGISTER_NOT_FOUND;
|
---|
276 | }
|
---|
277 | VMMR3DECL(int) DBGFR3RegPrintf(PUVM pUVM, VMCPUID idCpu, char *pszBuf, size_t cbBuf, const char *pszFormat, ...)
|
---|
278 | {
|
---|
279 | return VERR_INTERNAL_ERROR;
|
---|
280 | }
|
---|
281 | VMMDECL(ssize_t) DBGFR3RegFormatValue(char *pszBuf, size_t cbBuf, PCDBGFREGVAL pValue, DBGFREGVALTYPE enmType, bool fSpecial)
|
---|
282 | {
|
---|
283 | return VERR_INTERNAL_ERROR;
|
---|
284 | }
|
---|
285 | VMMR3DECL(int) DBGFR3RegNmSet(PUVM pUVM, VMCPUID idDefCpu, const char *pszReg, PCDBGFREGVAL pValue, DBGFREGVALTYPE enmType)
|
---|
286 | {
|
---|
287 | return VERR_INTERNAL_ERROR;
|
---|
288 | }
|
---|
289 |
|
---|
290 | VMMR3DECL(PDBGFADDRESS) DBGFR3AddrFromPhys(PUVM pUVM, PDBGFADDRESS pAddress, RTGCPHYS PhysAddr)
|
---|
291 | {
|
---|
292 | return NULL;
|
---|
293 | }
|
---|
294 | VMMR3DECL(int) DBGFR3AddrToHostPhys(PUVM pUVM, VMCPUID idCpu, PDBGFADDRESS pAddress, PRTHCPHYS pHCPhys)
|
---|
295 | {
|
---|
296 | return VERR_INTERNAL_ERROR;
|
---|
297 | }
|
---|
298 | VMMR3DECL(int) DBGFR3AddrToVolatileR3Ptr(PUVM pUVM, VMCPUID idCpu, PDBGFADDRESS pAddress, bool fReadOnly, void **ppvR3Ptr)
|
---|
299 | {
|
---|
300 | return VERR_INTERNAL_ERROR;
|
---|
301 | }
|
---|
302 |
|
---|
303 | VMMR3DECL(int) DBGFR3OSRegister(PUVM pUVM, PCDBGFOSREG pReg)
|
---|
304 | {
|
---|
305 | return VERR_INTERNAL_ERROR;
|
---|
306 | }
|
---|
307 | VMMR3DECL(int) DBGFR3OSDetect(PUVM pUVM, char *pszName, size_t cchName)
|
---|
308 | {
|
---|
309 | return VERR_INTERNAL_ERROR;
|
---|
310 | }
|
---|
311 | VMMR3DECL(int) DBGFR3OSQueryNameAndVersion(PUVM pUVM, char *pszName, size_t cchName, char *pszVersion, size_t cchVersion)
|
---|
312 | {
|
---|
313 | return VERR_INTERNAL_ERROR;
|
---|
314 | }
|
---|
315 | VMMR3DECL(void *) DBGFR3OSQueryInterface(PUVM pUVM, DBGFOSINTERFACE enmIf)
|
---|
316 | {
|
---|
317 | return NULL;
|
---|
318 | }
|
---|
319 |
|
---|
320 | VMMR3DECL(int) DBGFR3SelQueryInfo(PUVM pUVM, VMCPUID idCpu, RTSEL Sel, uint32_t fFlags, PDBGFSELINFO pSelInfo)
|
---|
321 | {
|
---|
322 | return VERR_INTERNAL_ERROR;
|
---|
323 | }
|
---|
324 |
|
---|
325 | VMMR3DECL(CPUMMODE) DBGFR3CpuGetMode(PUVM pUVM, VMCPUID idCpu)
|
---|
326 | {
|
---|
327 | return CPUMMODE_INVALID;
|
---|
328 | }
|
---|
329 | VMMR3DECL(VMCPUID) DBGFR3CpuGetCount(PUVM pUVM)
|
---|
330 | {
|
---|
331 | return 1;
|
---|
332 | }
|
---|
333 | VMMR3DECL(bool) DBGFR3CpuIsIn64BitCode(PUVM pUVM, VMCPUID idCpu)
|
---|
334 | {
|
---|
335 | return false;
|
---|
336 | }
|
---|
337 | VMMR3DECL(bool) DBGFR3CpuIsInV86Code(PUVM pUVM, VMCPUID idCpu)
|
---|
338 | {
|
---|
339 | return false;
|
---|
340 | }
|
---|
341 |
|
---|
342 | VMMR3DECL(int) DBGFR3CoreWrite(PUVM pUVM, const char *pszFilename, bool fReplaceFile)
|
---|
343 | {
|
---|
344 | return VERR_INTERNAL_ERROR;
|
---|
345 | }
|
---|
346 |
|
---|
347 | VMMR3DECL(int) DBGFR3PlugInLoad(PUVM pUVM, const char *pszPlugIn, char *pszActual, size_t cbActual, PRTERRINFO pErrInfo)
|
---|
348 | {
|
---|
349 | return VERR_INTERNAL_ERROR;
|
---|
350 | }
|
---|
351 | VMMR3DECL(int) DBGFR3PlugInUnload(PUVM pUVM, const char *pszName)
|
---|
352 | {
|
---|
353 | return VERR_INTERNAL_ERROR;
|
---|
354 | }
|
---|
355 | VMMR3DECL(void) DBGFR3PlugInLoadAll(PUVM pUVM)
|
---|
356 | {
|
---|
357 | }
|
---|
358 | VMMR3DECL(int) DBGFR3TypeRegister( PUVM pUVM, uint32_t cTypes, PCDBGFTYPEREG paTypes)
|
---|
359 | {
|
---|
360 | return VERR_INTERNAL_ERROR;
|
---|
361 | }
|
---|
362 | VMMR3DECL(int) DBGFR3TypeDeregister(PUVM pUVM, const char *pszType)
|
---|
363 | {
|
---|
364 | return VERR_INTERNAL_ERROR;
|
---|
365 | }
|
---|
366 | VMMR3DECL(int) DBGFR3TypeQueryReg( PUVM pUVM, const char *pszType, PCDBGFTYPEREG *ppTypeReg)
|
---|
367 | {
|
---|
368 | return VERR_INTERNAL_ERROR;
|
---|
369 | }
|
---|
370 | VMMR3DECL(int) DBGFR3TypeQuerySize( PUVM pUVM, const char *pszType, size_t *pcbType)
|
---|
371 | {
|
---|
372 | return VERR_INTERNAL_ERROR;
|
---|
373 | }
|
---|
374 | VMMR3DECL(int) DBGFR3TypeSetSize( PUVM pUVM, const char *pszType, size_t cbType)
|
---|
375 | {
|
---|
376 | return VERR_INTERNAL_ERROR;
|
---|
377 | }
|
---|
378 | VMMR3DECL(int) DBGFR3TypeDumpEx( PUVM pUVM, const char *pszType, uint32_t fFlags,
|
---|
379 | uint32_t cLvlMax, PFNDBGFR3TYPEDUMP pfnDump, void *pvUser)
|
---|
380 | {
|
---|
381 | return VERR_INTERNAL_ERROR;
|
---|
382 | }
|
---|
383 | VMMR3DECL(int) DBGFR3TypeQueryValByType(PUVM pUVM, PCDBGFADDRESS pAddress, const char *pszType,
|
---|
384 | PDBGFTYPEVAL *ppVal)
|
---|
385 | {
|
---|
386 | return VERR_INTERNAL_ERROR;
|
---|
387 | }
|
---|
388 | VMMR3DECL(void) DBGFR3TypeValFree(PDBGFTYPEVAL pVal)
|
---|
389 | {
|
---|
390 | }
|
---|
391 | VMMR3DECL(int) DBGFR3TypeValDumpEx(PUVM pUVM, PCDBGFADDRESS pAddress, const char *pszType, uint32_t fFlags,
|
---|
392 | uint32_t cLvlMax, FNDBGFR3TYPEVALDUMP pfnDump, void *pvUser)
|
---|
393 | {
|
---|
394 | return VERR_INTERNAL_ERROR;
|
---|
395 | }
|
---|
396 |
|
---|
397 | VMMR3DECL(int) DBGFR3FlowCreate(PUVM pUVM, VMCPUID idCpu, PDBGFADDRESS pAddressStart, uint32_t cbDisasmMax,
|
---|
398 | uint32_t fFlagsFlow, uint32_t fFlagsDisasm, PDBGFFLOW phFlow)
|
---|
399 | {
|
---|
400 | return VERR_INTERNAL_ERROR;
|
---|
401 | }
|
---|
402 | VMMR3DECL(uint32_t) DBGFR3FlowRetain(DBGFFLOW hFlow)
|
---|
403 | {
|
---|
404 | return 0;
|
---|
405 | }
|
---|
406 | VMMR3DECL(uint32_t) DBGFR3FlowRelease(DBGFFLOW hFlow)
|
---|
407 | {
|
---|
408 | return 0;
|
---|
409 | }
|
---|
410 | VMMR3DECL(int) DBGFR3FlowQueryStartBb(DBGFFLOW hFlow, PDBGFFLOWBB phFlowBb)
|
---|
411 | {
|
---|
412 | return VERR_INTERNAL_ERROR;
|
---|
413 | }
|
---|
414 | VMMR3DECL(int) DBGFR3FlowQueryBbByAddress(DBGFFLOW hFlow, PDBGFADDRESS pAddr, PDBGFFLOWBB phFlowBb)
|
---|
415 | {
|
---|
416 | return VERR_INTERNAL_ERROR;
|
---|
417 | }
|
---|
418 | VMMR3DECL(int) DBGFR3FlowQueryBranchTblByAddress(DBGFFLOW hFlow, PDBGFADDRESS pAddr, PDBGFFLOWBRANCHTBL phFlowBranchTbl)
|
---|
419 | {
|
---|
420 | return VERR_INTERNAL_ERROR;
|
---|
421 | }
|
---|
422 | VMMR3DECL(uint32_t) DBGFR3FlowGetBbCount(DBGFFLOW hFlow)
|
---|
423 | {
|
---|
424 | return 0;
|
---|
425 | }
|
---|
426 | VMMR3DECL(uint32_t) DBGFR3FlowGetBranchTblCount(DBGFFLOW hFlow)
|
---|
427 | {
|
---|
428 | return 0;
|
---|
429 | }
|
---|
430 | VMMR3DECL(uint32_t) DBGFR3FlowBbRetain(DBGFFLOWBB hFlowBb)
|
---|
431 | {
|
---|
432 | return 0;
|
---|
433 | }
|
---|
434 | VMMR3DECL(uint32_t) DBGFR3FlowBbRelease(DBGFFLOWBB hFlowBb)
|
---|
435 | {
|
---|
436 | return 0;
|
---|
437 | }
|
---|
438 | VMMR3DECL(PDBGFADDRESS) DBGFR3FlowBbGetStartAddress(DBGFFLOWBB hFlowBb, PDBGFADDRESS pAddrStart)
|
---|
439 | {
|
---|
440 | return NULL;
|
---|
441 | }
|
---|
442 | VMMR3DECL(PDBGFADDRESS) DBGFR3FlowBbGetEndAddress(DBGFFLOWBB hFlowBb, PDBGFADDRESS pAddrEnd)
|
---|
443 | {
|
---|
444 | return NULL;
|
---|
445 | }
|
---|
446 | VMMR3DECL(PDBGFADDRESS) DBGFR3FlowBbGetBranchAddress(DBGFFLOWBB hFlowBb, PDBGFADDRESS pAddrTarget)
|
---|
447 | {
|
---|
448 | return NULL;
|
---|
449 | }
|
---|
450 | VMMR3DECL(PDBGFADDRESS) DBGFR3FlowBbGetFollowingAddress(DBGFFLOWBB hFlowBb, PDBGFADDRESS pAddrFollow)
|
---|
451 | {
|
---|
452 | return NULL;
|
---|
453 | }
|
---|
454 | VMMR3DECL(DBGFFLOWBBENDTYPE) DBGFR3FlowBbGetType(DBGFFLOWBB hFlowBb)
|
---|
455 | {
|
---|
456 | return DBGFFLOWBBENDTYPE_INVALID;
|
---|
457 | }
|
---|
458 | VMMR3DECL(uint32_t) DBGFR3FlowBbGetInstrCount(DBGFFLOWBB hFlowBb)
|
---|
459 | {
|
---|
460 | return 0;
|
---|
461 | }
|
---|
462 | VMMR3DECL(uint32_t) DBGFR3FlowBbGetFlags(DBGFFLOWBB hFlowBb)
|
---|
463 | {
|
---|
464 | return 0;
|
---|
465 | }
|
---|
466 | VMMR3DECL(int) DBGFR3FlowBbQueryBranchTbl(DBGFFLOWBB hFlowBb, PDBGFFLOWBRANCHTBL phBranchTbl)
|
---|
467 | {
|
---|
468 | return VERR_INTERNAL_ERROR;
|
---|
469 | }
|
---|
470 | VMMR3DECL(int) DBGFR3FlowBbQueryError(DBGFFLOWBB hFlowBb, const char **ppszErr)
|
---|
471 | {
|
---|
472 | return VERR_INTERNAL_ERROR;
|
---|
473 | }
|
---|
474 | VMMR3DECL(int) DBGFR3FlowBbQueryInstr(DBGFFLOWBB hFlowBb, uint32_t idxInstr, PDBGFADDRESS pAddrInstr,
|
---|
475 | uint32_t *pcbInstr, const char **ppszInstr)
|
---|
476 | {
|
---|
477 | return VERR_INTERNAL_ERROR;
|
---|
478 | }
|
---|
479 | VMMR3DECL(int) DBGFR3FlowBbQuerySuccessors(DBGFFLOWBB hFlowBb, PDBGFFLOWBB phFlowBbFollow,
|
---|
480 | PDBGFFLOWBB phFlowBbTarget)
|
---|
481 | {
|
---|
482 | return VERR_INTERNAL_ERROR;
|
---|
483 | }
|
---|
484 | VMMR3DECL(uint32_t) DBGFR3FlowBbGetRefBbCount(DBGFFLOWBB hFlowBb)
|
---|
485 | {
|
---|
486 | return 0;
|
---|
487 | }
|
---|
488 | VMMR3DECL(int) DBGFR3FlowBbGetRefBb(DBGFFLOWBB hFlowBb, PDBGFFLOWBB pahFlowBbRef, uint32_t cRef)
|
---|
489 | {
|
---|
490 | return VERR_INTERNAL_ERROR;
|
---|
491 | }
|
---|
492 | VMMR3DECL(uint32_t) DBGFR3FlowBranchTblRetain(DBGFFLOWBRANCHTBL hFlowBranchTbl)
|
---|
493 | {
|
---|
494 | return 0;
|
---|
495 | }
|
---|
496 | VMMR3DECL(uint32_t) DBGFR3FlowBranchTblRelease(DBGFFLOWBRANCHTBL hFlowBranchTbl)
|
---|
497 | {
|
---|
498 | return 0;
|
---|
499 | }
|
---|
500 | VMMR3DECL(uint32_t) DBGFR3FlowBranchTblGetSlots(DBGFFLOWBRANCHTBL hFlowBranchTbl)
|
---|
501 | {
|
---|
502 | return 0;
|
---|
503 | }
|
---|
504 | VMMR3DECL(PDBGFADDRESS) DBGFR3FlowBranchTblGetStartAddress(DBGFFLOWBRANCHTBL hFlowBranchTbl, PDBGFADDRESS pAddrStart)
|
---|
505 | {
|
---|
506 | return NULL;
|
---|
507 | }
|
---|
508 | VMMR3DECL(PDBGFADDRESS) DBGFR3FlowBranchTblGetAddrAtSlot(DBGFFLOWBRANCHTBL hFlowBranchTbl, uint32_t idxSlot, PDBGFADDRESS pAddrSlot)
|
---|
509 | {
|
---|
510 | return NULL;
|
---|
511 | }
|
---|
512 | VMMR3DECL(int) DBGFR3FlowBranchTblQueryAddresses(DBGFFLOWBRANCHTBL hFlowBranchTbl, PDBGFADDRESS paAddrs, uint32_t cAddrs)
|
---|
513 | {
|
---|
514 | return VERR_INTERNAL_ERROR;
|
---|
515 | }
|
---|
516 | VMMR3DECL(int) DBGFR3FlowItCreate(DBGFFLOW hFlow, DBGFFLOWITORDER enmOrder, PDBGFFLOWIT phFlowIt)
|
---|
517 | {
|
---|
518 | return VERR_INTERNAL_ERROR;
|
---|
519 | }
|
---|
520 | VMMR3DECL(void) DBGFR3FlowItDestroy(DBGFFLOWIT hFlowIt)
|
---|
521 | {
|
---|
522 | }
|
---|
523 | VMMR3DECL(DBGFFLOWBB) DBGFR3FlowItNext(DBGFFLOWIT hFlowIt)
|
---|
524 | {
|
---|
525 | return NULL;
|
---|
526 | }
|
---|
527 | VMMR3DECL(int) DBGFR3FlowItReset(DBGFFLOWIT hFlowIt)
|
---|
528 | {
|
---|
529 | return VERR_INTERNAL_ERROR;
|
---|
530 | }
|
---|
531 | VMMR3DECL(int) DBGFR3FlowBranchTblItCreate(DBGFFLOW hFlow, DBGFFLOWITORDER enmOrder, PDBGFFLOWBRANCHTBLIT phFlowBranchTblIt)
|
---|
532 | {
|
---|
533 | return VERR_INTERNAL_ERROR;
|
---|
534 | }
|
---|
535 | VMMR3DECL(void) DBGFR3FlowBranchTblItDestroy(DBGFFLOWBRANCHTBLIT hFlowBranchTblIt)
|
---|
536 | {
|
---|
537 | }
|
---|
538 | VMMR3DECL(DBGFFLOWBRANCHTBL) DBGFR3FlowBranchTblItNext(DBGFFLOWBRANCHTBLIT hFlowBranchTblIt)
|
---|
539 | {
|
---|
540 | return NULL;
|
---|
541 | }
|
---|
542 | VMMR3DECL(int) DBGFR3FlowBranchTblItReset(DBGFFLOWBRANCHTBLIT hFlowBranchTblIt)
|
---|
543 | {
|
---|
544 | return VERR_INTERNAL_ERROR;
|
---|
545 | }
|
---|
546 |
|
---|
547 | VMMR3DECL(int) DBGFR3FormatBugCheck(PUVM pUVM, char *pszDetails, size_t cbDetails,
|
---|
548 | uint64_t uP0, uint64_t uP1, uint64_t uP2, uint64_t uP3, uint64_t uP4)
|
---|
549 | {
|
---|
550 | pszDetails[0] = '\0';
|
---|
551 | return VERR_INTERNAL_ERROR;
|
---|
552 | }
|
---|
553 |
|
---|
554 | #include <VBox/vmm/cfgm.h>
|
---|
555 | VMMR3DECL(int) CFGMR3ValidateConfig(PCFGMNODE pNode, const char *pszNode,
|
---|
556 | const char *pszValidValues, const char *pszValidNodes,
|
---|
557 | const char *pszWho, uint32_t uInstance)
|
---|
558 | {
|
---|
559 | return VINF_SUCCESS;
|
---|
560 | }
|
---|
561 |
|
---|
562 | VMMR3DECL(PCFGMNODE) CFGMR3GetRootU(PUVM pUVM)
|
---|
563 | {
|
---|
564 | return NULL;
|
---|
565 | }
|
---|
566 |
|
---|
567 | VMMR3DECL(PCFGMNODE) CFGMR3GetChild(PCFGMNODE pNode, const char *pszPath)
|
---|
568 | {
|
---|
569 | return NULL;
|
---|
570 | }
|
---|
571 |
|
---|
572 | VMMR3DECL(int) CFGMR3QueryString(PCFGMNODE pNode, const char *pszName, char *pszString, size_t cchString)
|
---|
573 | {
|
---|
574 | *pszString = '\0';
|
---|
575 | return VINF_SUCCESS;
|
---|
576 | }
|
---|
577 |
|
---|
578 | VMMR3DECL(int) CFGMR3QueryStringDef(PCFGMNODE pNode, const char *pszName, char *pszString, size_t cchString, const char *pszDef)
|
---|
579 | {
|
---|
580 | *pszString = '\0';
|
---|
581 | return VINF_SUCCESS;
|
---|
582 | }
|
---|
583 |
|
---|
584 |
|
---|
585 |
|
---|
586 | //////////////////////////////////////////////////////////////////////////
|
---|
587 | // The rest should eventually be replaced by DBGF calls and eliminated. //
|
---|
588 | /////////////////////////////////////////////////////////////////////////
|
---|
589 |
|
---|
590 |
|
---|
591 | #include <VBox/vmm/cpum.h>
|
---|
592 |
|
---|
593 | VMMDECL(uint64_t) CPUMGetGuestCR3(PVMCPU pVCpu)
|
---|
594 | {
|
---|
595 | return 0;
|
---|
596 | }
|
---|
597 |
|
---|
598 | VMMDECL(uint64_t) CPUMGetGuestCR4(PVMCPU pVCpu)
|
---|
599 | {
|
---|
600 | return 0;
|
---|
601 | }
|
---|
602 |
|
---|
603 | VMMDECL(RTSEL) CPUMGetGuestCS(PVMCPU pVCpu)
|
---|
604 | {
|
---|
605 | return 0;
|
---|
606 | }
|
---|
607 |
|
---|
608 | VMMDECL(PCCPUMCTXCORE) CPUMGetGuestCtxCore(PVMCPU pVCpu)
|
---|
609 | {
|
---|
610 | return NULL;
|
---|
611 | }
|
---|
612 |
|
---|
613 | VMMDECL(uint32_t) CPUMGetGuestEIP(PVMCPU pVCpu)
|
---|
614 | {
|
---|
615 | return 0;
|
---|
616 | }
|
---|
617 |
|
---|
618 | VMMDECL(uint64_t) CPUMGetGuestRIP(PVMCPU pVCpu)
|
---|
619 | {
|
---|
620 | return 0;
|
---|
621 | }
|
---|
622 |
|
---|
623 | VMMDECL(RTGCPTR) CPUMGetGuestIDTR(PVMCPU pVCpu, uint16_t *pcbLimit)
|
---|
624 | {
|
---|
625 | return 0;
|
---|
626 | }
|
---|
627 |
|
---|
628 | VMMDECL(CPUMMODE) CPUMGetGuestMode(PVMCPU pVCpu)
|
---|
629 | {
|
---|
630 | return CPUMMODE_INVALID;
|
---|
631 | }
|
---|
632 |
|
---|
633 | VMMDECL(RTSEL) CPUMGetHyperCS(PVMCPU pVCpu)
|
---|
634 | {
|
---|
635 | return 0xfff8;
|
---|
636 | }
|
---|
637 |
|
---|
638 | VMMDECL(uint32_t) CPUMGetHyperEIP(PVMCPU pVCpu)
|
---|
639 | {
|
---|
640 | return 0;
|
---|
641 | }
|
---|
642 |
|
---|
643 | VMMDECL(PCPUMCTX) CPUMQueryGuestCtxPtr(PVMCPU pVCpu)
|
---|
644 | {
|
---|
645 | return NULL;
|
---|
646 | }
|
---|
647 |
|
---|
648 | VMMDECL(bool) CPUMIsGuestIn64BitCode(PVMCPU pVCpu)
|
---|
649 | {
|
---|
650 | return false;
|
---|
651 | }
|
---|
652 |
|
---|
653 | VMMDECL(uint32_t) CPUMGetGuestEFlags(PVMCPU pVCpu)
|
---|
654 | {
|
---|
655 | return 2;
|
---|
656 | }
|
---|
657 |
|
---|
658 | #include <VBox/vmm/hm.h>
|
---|
659 | VMMR3DECL(bool) HMR3IsEnabled(PUVM pUVM)
|
---|
660 | {
|
---|
661 | return true;
|
---|
662 | }
|
---|
663 |
|
---|
664 |
|
---|
665 | #include <VBox/vmm/nem.h>
|
---|
666 | VMMR3DECL(bool) NEMR3IsEnabled(PUVM pUVM)
|
---|
667 | {
|
---|
668 | return true;
|
---|
669 | }
|
---|
670 |
|
---|
671 |
|
---|
672 | #include <VBox/vmm/pgm.h>
|
---|
673 |
|
---|
674 | VMMDECL(RTHCPHYS) PGMGetHyperCR3(PVMCPU pVCpu)
|
---|
675 | {
|
---|
676 | return 0;
|
---|
677 | }
|
---|
678 |
|
---|
679 | VMMDECL(PGMMODE) PGMGetShadowMode(PVMCPU pVCpu)
|
---|
680 | {
|
---|
681 | return PGMMODE_INVALID;
|
---|
682 | }
|
---|
683 |
|
---|
684 | VMMR3DECL(int) PGMR3DbgR3Ptr2GCPhys(PUVM pUVM, RTR3PTR R3Ptr, PRTGCPHYS pGCPhys)
|
---|
685 | {
|
---|
686 | return VERR_INTERNAL_ERROR;
|
---|
687 | }
|
---|
688 |
|
---|
689 | VMMR3DECL(int) PGMR3DbgR3Ptr2HCPhys(PUVM pUVM, RTR3PTR R3Ptr, PRTHCPHYS pHCPhys)
|
---|
690 | {
|
---|
691 | return VERR_INTERNAL_ERROR;
|
---|
692 | }
|
---|
693 | VMMR3DECL(int) PGMR3DbgHCPhys2GCPhys(PUVM pUVM, RTHCPHYS HCPhys, PRTGCPHYS pGCPhys)
|
---|
694 | {
|
---|
695 | return VERR_INTERNAL_ERROR;
|
---|
696 | }
|
---|
697 |
|
---|
698 |
|
---|
699 | #include <VBox/vmm/vmm.h>
|
---|
700 |
|
---|
701 | VMMR3DECL(PVMCPU) VMMR3GetCpuByIdU(PUVM pUVM, RTCPUID idCpu)
|
---|
702 | {
|
---|
703 | return NULL;
|
---|
704 | }
|
---|
705 |
|
---|
706 |
|
---|
707 | VMMR3DECL(PVM) VMR3GetVM(PUVM pUVM)
|
---|
708 | {
|
---|
709 | return NULL;
|
---|
710 | }
|
---|
711 |
|
---|
712 | VMMR3DECL(VMSTATE) VMR3GetStateU(PUVM pUVM)
|
---|
713 | {
|
---|
714 | return VMSTATE_DESTROYING;
|
---|
715 | }
|
---|