VirtualBox

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

Last change on this file since 93646 was 93470, checked in by vboxsync, 3 years ago

DbgPlugInDiggers,VMM,Main: Refactored the diggers and related interfaces to work via the VMM function table. Removed non-working tstVBoxDbg (needs proper COM now). bugref:10072

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