VirtualBox

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

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

All CRx registers are now 64 bits.

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