VirtualBox

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

Last change on this file since 73348 was 73348, checked in by vboxsync, 6 years ago

DBGF,DBGC,GIMHv: Added some basic windows bug check formatting (DBGFR3FormatBugCheck). Extended DBGFEventGenericWithArgs and DBGFEVENT to hold up to 6 64-bit arguments, so that we can pass all the bug check arguments to the debugger.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 19.8 KB
Line 
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>
25VMMR3DECL(PDBGFADDRESS) DBGFR3AddrFromFlat(PUVM pUVM, PDBGFADDRESS pAddress, RTGCUINTPTR FlatPtr)
26{
27 return NULL;
28}
29
30VMMR3DECL(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
44VMMR3DECL(int) DBGFR3AddrToPhys(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, PRTGCPHYS pGCPhys)
45{
46 return VERR_INTERNAL_ERROR;
47}
48
49VMMR3DECL(int) DBGFR3Attach(PUVM pUVM)
50{
51 return VERR_INTERNAL_ERROR;
52}
53
54VMMR3DECL(int) DBGFR3BpClear(PUVM pUVM, RTUINT iBp)
55{
56 return VERR_INTERNAL_ERROR;
57}
58VMMR3DECL(int) DBGFR3BpDisable(PUVM pUVM, RTUINT iBp)
59{
60 return VERR_INTERNAL_ERROR;
61}
62VMMR3DECL(int) DBGFR3BpEnable(PUVM pUVM, RTUINT iBp)
63{
64 return VERR_INTERNAL_ERROR;
65}
66VMMR3DECL(int) DBGFR3BpEnum(PUVM pUVM, PFNDBGFBPENUM pfnCallback, void *pvUser)
67{
68 return VERR_INTERNAL_ERROR;
69}
70VMMR3DECL(int) DBGFR3BpSetInt3(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable, PRTUINT piBp)
71{
72 return VERR_INTERNAL_ERROR;
73}
74VMMR3DECL(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}
79VMMR3DECL(int) DBGFR3BpSetREM(PUVM pUVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable, PRTUINT piBp)
80{
81 return VERR_INTERNAL_ERROR;
82}
83VMMR3DECL(int) DBGFR3QueryWaitable(PUVM pUVM)
84{
85 return VINF_SUCCESS;
86}
87VMMR3DECL(int) DBGFR3Detach(PUVM pUVM)
88{
89 return VERR_INTERNAL_ERROR;
90}
91VMMR3DECL(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}
96VMMR3DECL(int) DBGFR3EventWait(PUVM pUVM, RTMSINTERVAL cMillies, PCDBGFEVENT *ppEvent)
97{
98 return VERR_INTERNAL_ERROR;
99}
100VMMR3DECL(int) DBGFR3EventConfigEx(PUVM pUVM, PCDBGFEVENTCONFIG paConfigs, size_t cConfigs)
101{
102 return VERR_INTERNAL_ERROR;
103}
104VMMR3DECL(int) DBGFR3InterruptConfigEx(PUVM pUVM, PCDBGFINTERRUPTCONFIG paConfigs, size_t cConfigs)
105{
106 return VERR_INTERNAL_ERROR;
107}
108
109VMMR3DECL(int) DBGFR3Halt(PUVM pUVM)
110{
111 return VERR_INTERNAL_ERROR;
112}
113VMMR3DECL(int) DBGFR3Info(PUVM pUVM, const char *pszName, const char *pszArgs, PCDBGFINFOHLP pHlp)
114{
115 return VERR_INTERNAL_ERROR;
116}
117VMMR3DECL(int) DBGFR3InfoEx(PUVM pUVM, VMCPUID idCpu, const char *pszName, const char *pszArgs, PCDBGFINFOHLP pHlp)
118{
119 return VERR_INTERNAL_ERROR;
120}
121VMMR3DECL(bool) DBGFR3IsHalted(PUVM pUVM)
122{
123 return true;
124}
125VMMR3DECL(int) DBGFR3LogModifyDestinations(PUVM pUVM, const char *pszDestSettings)
126{
127 return VERR_INTERNAL_ERROR;
128}
129VMMR3DECL(int) DBGFR3LogModifyFlags(PUVM pUVM, const char *pszFlagSettings)
130{
131 return VERR_INTERNAL_ERROR;
132}
133VMMR3DECL(int) DBGFR3LogModifyGroups(PUVM pUVM, const char *pszGroupSettings)
134{
135 return VERR_INTERNAL_ERROR;
136}
137VMMR3DECL(RTDBGCFG) DBGFR3AsGetConfig(PUVM pUVM)
138{
139 return NIL_RTDBGCFG;
140}
141VMMR3DECL(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}
146VMMR3DECL(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}
150VMMR3DECL(int) DBGFR3AsUnlinkModuleByName(PUVM pUVM, RTDBGAS hDbgAs, const char *pszModName)
151{
152 return VERR_INTERNAL_ERROR;
153}
154VMMR3DECL(RTDBGAS) DBGFR3AsResolveAndRetain(PUVM pUVM, RTDBGAS hAlias)
155{
156 return NIL_RTDBGAS;
157}
158VMMR3DECL(int) DBGFR3AsLineByAddr(PUVM pUVM, RTDBGAS hDbgAs, PCDBGFADDRESS pAddress,
159 PRTGCINTPTR poffDisp, PRTDBGLINE pLine, PRTDBGMOD phMod)
160{
161 return VERR_DBG_LINE_NOT_FOUND;
162}
163VMMR3DECL(int) DBGFR3Resume(PUVM pUVM)
164{
165 return VERR_INTERNAL_ERROR;
166}
167VMMR3DECL(int) DBGFR3StackWalkBegin(PUVM pUVM, VMCPUID idCpu, DBGFCODETYPE enmCodeType, PCDBGFSTACKFRAME *ppFirstFrame)
168{
169 return VERR_INTERNAL_ERROR;
170}
171VMMR3DECL(PCDBGFSTACKFRAME) DBGFR3StackWalkNext(PCDBGFSTACKFRAME pCurrent)
172{
173 return NULL;
174}
175VMMR3DECL(void) DBGFR3StackWalkEnd(PCDBGFSTACKFRAME pFirstFrame)
176{
177}
178VMMR3DECL(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}
183VMMR3DECL(int) DBGFR3AsSymbolByAddr(PUVM pUVM, RTDBGAS hDbgAs, PCDBGFADDRESS pAddress, uint32_t fFlags, PRTGCINTPTR poffDisplacement, PRTDBGSYMBOL pSymbol, PRTDBGMOD phMod)
184{
185 return VERR_INTERNAL_ERROR;
186}
187VMMR3DECL(int) DBGFR3AsSymbolByName(PUVM pUVM, RTDBGAS hDbgAs, const char *pszSymbol, PRTDBGSYMBOL pSymbol, PRTDBGMOD phMod)
188{
189 return VERR_INTERNAL_ERROR;
190}
191VMMR3DECL(int) DBGFR3AsLinkModule(PUVM pUVM, RTDBGAS hDbgAs, RTDBGMOD hMod, PCDBGFADDRESS pModAddress, RTDBGSEGIDX iModSeg, uint32_t fFlags)
192{
193 return VERR_INTERNAL_ERROR;
194}
195VMMR3DECL(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}
200VMMR3DECL(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}
204VMMR3DECL(int) DBGFR3MemRead(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, void *pvBuf, size_t cbRead)
205{
206 return VERR_INTERNAL_ERROR;
207}
208VMMR3DECL(int) DBGFR3MemReadString(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, char *pszBuf, size_t cchBuf)
209{
210 return VERR_INTERNAL_ERROR;
211}
212VMMR3DECL(int) DBGFR3MemWrite(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, const void *pvBuf, size_t cbRead)
213{
214 return VERR_INTERNAL_ERROR;
215}
216VMMDECL(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}
221VMMR3DECL(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}
230VMMR3DECL(int) DBGFR3RegCpuQueryU8( PUVM pUVM, VMCPUID idCpu, DBGFREG enmReg, uint8_t *pu8)
231{
232 return VERR_INTERNAL_ERROR;
233}
234VMMR3DECL(int) DBGFR3RegCpuQueryU16( PUVM pUVM, VMCPUID idCpu, DBGFREG enmReg, uint16_t *pu16)
235{
236 return VERR_INTERNAL_ERROR;
237}
238VMMR3DECL(int) DBGFR3RegCpuQueryU32( PUVM pUVM, VMCPUID idCpu, DBGFREG enmReg, uint32_t *pu32)
239{
240 return VERR_INTERNAL_ERROR;
241}
242VMMR3DECL(int) DBGFR3RegCpuQueryU64( PUVM pUVM, VMCPUID idCpu, DBGFREG enmReg, uint64_t *pu64)
243{
244 return VERR_INTERNAL_ERROR;
245}
246VMMR3DECL(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}
277VMMR3DECL(int) DBGFR3RegPrintf(PUVM pUVM, VMCPUID idCpu, char *pszBuf, size_t cbBuf, const char *pszFormat, ...)
278{
279 return VERR_INTERNAL_ERROR;
280}
281VMMDECL(ssize_t) DBGFR3RegFormatValue(char *pszBuf, size_t cbBuf, PCDBGFREGVAL pValue, DBGFREGVALTYPE enmType, bool fSpecial)
282{
283 return VERR_INTERNAL_ERROR;
284}
285VMMR3DECL(int) DBGFR3RegNmSet(PUVM pUVM, VMCPUID idDefCpu, const char *pszReg, PCDBGFREGVAL pValue, DBGFREGVALTYPE enmType)
286{
287 return VERR_INTERNAL_ERROR;
288}
289
290VMMR3DECL(PDBGFADDRESS) DBGFR3AddrFromPhys(PUVM pUVM, PDBGFADDRESS pAddress, RTGCPHYS PhysAddr)
291{
292 return NULL;
293}
294VMMR3DECL(int) DBGFR3AddrToHostPhys(PUVM pUVM, VMCPUID idCpu, PDBGFADDRESS pAddress, PRTHCPHYS pHCPhys)
295{
296 return VERR_INTERNAL_ERROR;
297}
298VMMR3DECL(int) DBGFR3AddrToVolatileR3Ptr(PUVM pUVM, VMCPUID idCpu, PDBGFADDRESS pAddress, bool fReadOnly, void **ppvR3Ptr)
299{
300 return VERR_INTERNAL_ERROR;
301}
302
303VMMR3DECL(int) DBGFR3OSRegister(PUVM pUVM, PCDBGFOSREG pReg)
304{
305 return VERR_INTERNAL_ERROR;
306}
307VMMR3DECL(int) DBGFR3OSDetect(PUVM pUVM, char *pszName, size_t cchName)
308{
309 return VERR_INTERNAL_ERROR;
310}
311VMMR3DECL(int) DBGFR3OSQueryNameAndVersion(PUVM pUVM, char *pszName, size_t cchName, char *pszVersion, size_t cchVersion)
312{
313 return VERR_INTERNAL_ERROR;
314}
315VMMR3DECL(void *) DBGFR3OSQueryInterface(PUVM pUVM, DBGFOSINTERFACE enmIf)
316{
317 return NULL;
318}
319
320VMMR3DECL(int) DBGFR3SelQueryInfo(PUVM pUVM, VMCPUID idCpu, RTSEL Sel, uint32_t fFlags, PDBGFSELINFO pSelInfo)
321{
322 return VERR_INTERNAL_ERROR;
323}
324
325VMMR3DECL(CPUMMODE) DBGFR3CpuGetMode(PUVM pUVM, VMCPUID idCpu)
326{
327 return CPUMMODE_INVALID;
328}
329VMMR3DECL(VMCPUID) DBGFR3CpuGetCount(PUVM pUVM)
330{
331 return 1;
332}
333VMMR3DECL(bool) DBGFR3CpuIsIn64BitCode(PUVM pUVM, VMCPUID idCpu)
334{
335 return false;
336}
337VMMR3DECL(bool) DBGFR3CpuIsInV86Code(PUVM pUVM, VMCPUID idCpu)
338{
339 return false;
340}
341
342VMMR3DECL(int) DBGFR3CoreWrite(PUVM pUVM, const char *pszFilename, bool fReplaceFile)
343{
344 return VERR_INTERNAL_ERROR;
345}
346
347VMMR3DECL(int) DBGFR3PlugInLoad(PUVM pUVM, const char *pszPlugIn, char *pszActual, size_t cbActual, PRTERRINFO pErrInfo)
348{
349 return VERR_INTERNAL_ERROR;
350}
351VMMR3DECL(int) DBGFR3PlugInUnload(PUVM pUVM, const char *pszName)
352{
353 return VERR_INTERNAL_ERROR;
354}
355VMMR3DECL(void) DBGFR3PlugInLoadAll(PUVM pUVM)
356{
357}
358VMMR3DECL(int) DBGFR3TypeRegister( PUVM pUVM, uint32_t cTypes, PCDBGFTYPEREG paTypes)
359{
360 return VERR_INTERNAL_ERROR;
361}
362VMMR3DECL(int) DBGFR3TypeDeregister(PUVM pUVM, const char *pszType)
363{
364 return VERR_INTERNAL_ERROR;
365}
366VMMR3DECL(int) DBGFR3TypeQueryReg( PUVM pUVM, const char *pszType, PCDBGFTYPEREG *ppTypeReg)
367{
368 return VERR_INTERNAL_ERROR;
369}
370VMMR3DECL(int) DBGFR3TypeQuerySize( PUVM pUVM, const char *pszType, size_t *pcbType)
371{
372 return VERR_INTERNAL_ERROR;
373}
374VMMR3DECL(int) DBGFR3TypeSetSize( PUVM pUVM, const char *pszType, size_t cbType)
375{
376 return VERR_INTERNAL_ERROR;
377}
378VMMR3DECL(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}
383VMMR3DECL(int) DBGFR3TypeQueryValByType(PUVM pUVM, PCDBGFADDRESS pAddress, const char *pszType,
384 PDBGFTYPEVAL *ppVal)
385{
386 return VERR_INTERNAL_ERROR;
387}
388VMMR3DECL(void) DBGFR3TypeValFree(PDBGFTYPEVAL pVal)
389{
390}
391VMMR3DECL(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
397VMMR3DECL(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}
402VMMR3DECL(uint32_t) DBGFR3FlowRetain(DBGFFLOW hFlow)
403{
404 return 0;
405}
406VMMR3DECL(uint32_t) DBGFR3FlowRelease(DBGFFLOW hFlow)
407{
408 return 0;
409}
410VMMR3DECL(int) DBGFR3FlowQueryStartBb(DBGFFLOW hFlow, PDBGFFLOWBB phFlowBb)
411{
412 return VERR_INTERNAL_ERROR;
413}
414VMMR3DECL(int) DBGFR3FlowQueryBbByAddress(DBGFFLOW hFlow, PDBGFADDRESS pAddr, PDBGFFLOWBB phFlowBb)
415{
416 return VERR_INTERNAL_ERROR;
417}
418VMMR3DECL(int) DBGFR3FlowQueryBranchTblByAddress(DBGFFLOW hFlow, PDBGFADDRESS pAddr, PDBGFFLOWBRANCHTBL phFlowBranchTbl)
419{
420 return VERR_INTERNAL_ERROR;
421}
422VMMR3DECL(uint32_t) DBGFR3FlowGetBbCount(DBGFFLOW hFlow)
423{
424 return 0;
425}
426VMMR3DECL(uint32_t) DBGFR3FlowGetBranchTblCount(DBGFFLOW hFlow)
427{
428 return 0;
429}
430VMMR3DECL(uint32_t) DBGFR3FlowBbRetain(DBGFFLOWBB hFlowBb)
431{
432 return 0;
433}
434VMMR3DECL(uint32_t) DBGFR3FlowBbRelease(DBGFFLOWBB hFlowBb)
435{
436 return 0;
437}
438VMMR3DECL(PDBGFADDRESS) DBGFR3FlowBbGetStartAddress(DBGFFLOWBB hFlowBb, PDBGFADDRESS pAddrStart)
439{
440 return NULL;
441}
442VMMR3DECL(PDBGFADDRESS) DBGFR3FlowBbGetEndAddress(DBGFFLOWBB hFlowBb, PDBGFADDRESS pAddrEnd)
443{
444 return NULL;
445}
446VMMR3DECL(PDBGFADDRESS) DBGFR3FlowBbGetBranchAddress(DBGFFLOWBB hFlowBb, PDBGFADDRESS pAddrTarget)
447{
448 return NULL;
449}
450VMMR3DECL(PDBGFADDRESS) DBGFR3FlowBbGetFollowingAddress(DBGFFLOWBB hFlowBb, PDBGFADDRESS pAddrFollow)
451{
452 return NULL;
453}
454VMMR3DECL(DBGFFLOWBBENDTYPE) DBGFR3FlowBbGetType(DBGFFLOWBB hFlowBb)
455{
456 return DBGFFLOWBBENDTYPE_INVALID;
457}
458VMMR3DECL(uint32_t) DBGFR3FlowBbGetInstrCount(DBGFFLOWBB hFlowBb)
459{
460 return 0;
461}
462VMMR3DECL(uint32_t) DBGFR3FlowBbGetFlags(DBGFFLOWBB hFlowBb)
463{
464 return 0;
465}
466VMMR3DECL(int) DBGFR3FlowBbQueryBranchTbl(DBGFFLOWBB hFlowBb, PDBGFFLOWBRANCHTBL phBranchTbl)
467{
468 return VERR_INTERNAL_ERROR;
469}
470VMMR3DECL(int) DBGFR3FlowBbQueryError(DBGFFLOWBB hFlowBb, const char **ppszErr)
471{
472 return VERR_INTERNAL_ERROR;
473}
474VMMR3DECL(int) DBGFR3FlowBbQueryInstr(DBGFFLOWBB hFlowBb, uint32_t idxInstr, PDBGFADDRESS pAddrInstr,
475 uint32_t *pcbInstr, const char **ppszInstr)
476{
477 return VERR_INTERNAL_ERROR;
478}
479VMMR3DECL(int) DBGFR3FlowBbQuerySuccessors(DBGFFLOWBB hFlowBb, PDBGFFLOWBB phFlowBbFollow,
480 PDBGFFLOWBB phFlowBbTarget)
481{
482 return VERR_INTERNAL_ERROR;
483}
484VMMR3DECL(uint32_t) DBGFR3FlowBbGetRefBbCount(DBGFFLOWBB hFlowBb)
485{
486 return 0;
487}
488VMMR3DECL(int) DBGFR3FlowBbGetRefBb(DBGFFLOWBB hFlowBb, PDBGFFLOWBB pahFlowBbRef, uint32_t cRef)
489{
490 return VERR_INTERNAL_ERROR;
491}
492VMMR3DECL(uint32_t) DBGFR3FlowBranchTblRetain(DBGFFLOWBRANCHTBL hFlowBranchTbl)
493{
494 return 0;
495}
496VMMR3DECL(uint32_t) DBGFR3FlowBranchTblRelease(DBGFFLOWBRANCHTBL hFlowBranchTbl)
497{
498 return 0;
499}
500VMMR3DECL(uint32_t) DBGFR3FlowBranchTblGetSlots(DBGFFLOWBRANCHTBL hFlowBranchTbl)
501{
502 return 0;
503}
504VMMR3DECL(PDBGFADDRESS) DBGFR3FlowBranchTblGetStartAddress(DBGFFLOWBRANCHTBL hFlowBranchTbl, PDBGFADDRESS pAddrStart)
505{
506 return NULL;
507}
508VMMR3DECL(PDBGFADDRESS) DBGFR3FlowBranchTblGetAddrAtSlot(DBGFFLOWBRANCHTBL hFlowBranchTbl, uint32_t idxSlot, PDBGFADDRESS pAddrSlot)
509{
510 return NULL;
511}
512VMMR3DECL(int) DBGFR3FlowBranchTblQueryAddresses(DBGFFLOWBRANCHTBL hFlowBranchTbl, PDBGFADDRESS paAddrs, uint32_t cAddrs)
513{
514 return VERR_INTERNAL_ERROR;
515}
516VMMR3DECL(int) DBGFR3FlowItCreate(DBGFFLOW hFlow, DBGFFLOWITORDER enmOrder, PDBGFFLOWIT phFlowIt)
517{
518 return VERR_INTERNAL_ERROR;
519}
520VMMR3DECL(void) DBGFR3FlowItDestroy(DBGFFLOWIT hFlowIt)
521{
522}
523VMMR3DECL(DBGFFLOWBB) DBGFR3FlowItNext(DBGFFLOWIT hFlowIt)
524{
525 return NULL;
526}
527VMMR3DECL(int) DBGFR3FlowItReset(DBGFFLOWIT hFlowIt)
528{
529 return VERR_INTERNAL_ERROR;
530}
531VMMR3DECL(int) DBGFR3FlowBranchTblItCreate(DBGFFLOW hFlow, DBGFFLOWITORDER enmOrder, PDBGFFLOWBRANCHTBLIT phFlowBranchTblIt)
532{
533 return VERR_INTERNAL_ERROR;
534}
535VMMR3DECL(void) DBGFR3FlowBranchTblItDestroy(DBGFFLOWBRANCHTBLIT hFlowBranchTblIt)
536{
537}
538VMMR3DECL(DBGFFLOWBRANCHTBL) DBGFR3FlowBranchTblItNext(DBGFFLOWBRANCHTBLIT hFlowBranchTblIt)
539{
540 return NULL;
541}
542VMMR3DECL(int) DBGFR3FlowBranchTblItReset(DBGFFLOWBRANCHTBLIT hFlowBranchTblIt)
543{
544 return VERR_INTERNAL_ERROR;
545}
546
547VMMR3DECL(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>
555VMMR3DECL(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
562VMMR3DECL(PCFGMNODE) CFGMR3GetRootU(PUVM pUVM)
563{
564 return NULL;
565}
566
567VMMR3DECL(PCFGMNODE) CFGMR3GetChild(PCFGMNODE pNode, const char *pszPath)
568{
569 return NULL;
570}
571
572VMMR3DECL(int) CFGMR3QueryString(PCFGMNODE pNode, const char *pszName, char *pszString, size_t cchString)
573{
574 *pszString = '\0';
575 return VINF_SUCCESS;
576}
577
578VMMR3DECL(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
593VMMDECL(uint64_t) CPUMGetGuestCR3(PVMCPU pVCpu)
594{
595 return 0;
596}
597
598VMMDECL(uint64_t) CPUMGetGuestCR4(PVMCPU pVCpu)
599{
600 return 0;
601}
602
603VMMDECL(RTSEL) CPUMGetGuestCS(PVMCPU pVCpu)
604{
605 return 0;
606}
607
608VMMDECL(PCCPUMCTXCORE) CPUMGetGuestCtxCore(PVMCPU pVCpu)
609{
610 return NULL;
611}
612
613VMMDECL(uint32_t) CPUMGetGuestEIP(PVMCPU pVCpu)
614{
615 return 0;
616}
617
618VMMDECL(uint64_t) CPUMGetGuestRIP(PVMCPU pVCpu)
619{
620 return 0;
621}
622
623VMMDECL(RTGCPTR) CPUMGetGuestIDTR(PVMCPU pVCpu, uint16_t *pcbLimit)
624{
625 return 0;
626}
627
628VMMDECL(CPUMMODE) CPUMGetGuestMode(PVMCPU pVCpu)
629{
630 return CPUMMODE_INVALID;
631}
632
633VMMDECL(RTSEL) CPUMGetHyperCS(PVMCPU pVCpu)
634{
635 return 0xfff8;
636}
637
638VMMDECL(uint32_t) CPUMGetHyperEIP(PVMCPU pVCpu)
639{
640 return 0;
641}
642
643VMMDECL(PCPUMCTX) CPUMQueryGuestCtxPtr(PVMCPU pVCpu)
644{
645 return NULL;
646}
647
648VMMDECL(bool) CPUMIsGuestIn64BitCode(PVMCPU pVCpu)
649{
650 return false;
651}
652
653VMMDECL(uint32_t) CPUMGetGuestEFlags(PVMCPU pVCpu)
654{
655 return 2;
656}
657
658#include <VBox/vmm/hm.h>
659VMMR3DECL(bool) HMR3IsEnabled(PUVM pUVM)
660{
661 return true;
662}
663
664
665#include <VBox/vmm/nem.h>
666VMMR3DECL(bool) NEMR3IsEnabled(PUVM pUVM)
667{
668 return true;
669}
670
671
672#include <VBox/vmm/pgm.h>
673
674VMMDECL(RTHCPHYS) PGMGetHyperCR3(PVMCPU pVCpu)
675{
676 return 0;
677}
678
679VMMDECL(PGMMODE) PGMGetShadowMode(PVMCPU pVCpu)
680{
681 return PGMMODE_INVALID;
682}
683
684VMMR3DECL(int) PGMR3DbgR3Ptr2GCPhys(PUVM pUVM, RTR3PTR R3Ptr, PRTGCPHYS pGCPhys)
685{
686 return VERR_INTERNAL_ERROR;
687}
688
689VMMR3DECL(int) PGMR3DbgR3Ptr2HCPhys(PUVM pUVM, RTR3PTR R3Ptr, PRTHCPHYS pHCPhys)
690{
691 return VERR_INTERNAL_ERROR;
692}
693VMMR3DECL(int) PGMR3DbgHCPhys2GCPhys(PUVM pUVM, RTHCPHYS HCPhys, PRTGCPHYS pGCPhys)
694{
695 return VERR_INTERNAL_ERROR;
696}
697
698
699#include <VBox/vmm/vmm.h>
700
701VMMR3DECL(PVMCPU) VMMR3GetCpuByIdU(PUVM pUVM, RTCPUID idCpu)
702{
703 return NULL;
704}
705
706
707VMMR3DECL(PVM) VMR3GetVM(PUVM pUVM)
708{
709 return NULL;
710}
711
712VMMR3DECL(VMSTATE) VMR3GetStateU(PUVM pUVM)
713{
714 return VMSTATE_DESTROYING;
715}
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