VirtualBox

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

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

The Giant CDDL Dual-License Header Change.

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

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette