3 * DBGPlugInDiggers - Debugger and Guest OS Digger Plug-in.
7 * Copyright (C) 2006-2010 Oracle Corporation
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.
19 /*******************************************************************************
21 *******************************************************************************/
22 #define LOG_GROUP LOG_GROUP_DBGC
24 #include <VBox/vmm/dbgf.h>
25 #include "DBGPlugIns.h"
26 #include <VBox/version.h>
30 DECLEXPORT(int) DBGCPlugInEntry(DBGCPLUGINOP enmOperation
, PVM pVM
, uintptr_t uArg
)
32 static PCDBGFOSREG s_aPlugIns
[] =
34 //&g_DBGDiggerFreeBSD,
43 case DBGCPLUGINOP_INIT
:
45 if (uArg
!= VBOX_VERSION
)
46 return VERR_VERSION_MISMATCH
;
48 for (unsigned i
= 0; i
< RT_ELEMENTS(s_aPlugIns
); i
++)
50 int rc
= DBGFR3OSRegister(pVM
, s_aPlugIns
[i
]);
55 DBGFR3OSDeregister(pVM
, s_aPlugIns
[i
]);
62 case DBGCPLUGINOP_TERM
:
64 for (unsigned i
= 0; i
< RT_ELEMENTS(s_aPlugIns
); i
++)
66 int rc
= DBGFR3OSDeregister(pVM
, s_aPlugIns
[i
]);
73 return VERR_NOT_SUPPORTED
;