tools/*: remove bcc and as86 as they are no longer required to compile the system...
[virtualbox.git] / src / VBox / Debugger / DBGPlugInDiggers.cpp
blob18e08414f7629664a7f57fe81023fa4e61c41339
1 /* $Id$ */
2 /** @file
3 * DBGPlugInDiggers - Debugger and Guest OS Digger Plug-in.
4 */
6 /*
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 /*******************************************************************************
20 * Header Files *
21 *******************************************************************************/
22 #define LOG_GROUP LOG_GROUP_DBGC
23 #include <VBox/dbg.h>
24 #include <VBox/vmm/dbgf.h>
25 #include "DBGPlugIns.h"
26 #include <VBox/version.h>
27 #include <VBox/err.h>
30 DECLEXPORT(int) DBGCPlugInEntry(DBGCPLUGINOP enmOperation, PVM pVM, uintptr_t uArg)
32 static PCDBGFOSREG s_aPlugIns[] =
34 //&g_DBGDiggerFreeBSD,
35 &g_DBGDiggerLinux,
36 &g_DBGDiggerOS2,
37 &g_DBGDiggerSolaris,
38 &g_DBGDiggerWinNt
41 switch (enmOperation)
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]);
51 if (RT_FAILURE(rc))
53 AssertRC(rc);
54 while (i-- > 0)
55 DBGFR3OSDeregister(pVM, s_aPlugIns[i]);
56 return rc;
59 return VINF_SUCCESS;
62 case DBGCPLUGINOP_TERM:
64 for (unsigned i = 0; i < RT_ELEMENTS(s_aPlugIns); i++)
66 int rc = DBGFR3OSDeregister(pVM, s_aPlugIns[i]);
67 AssertRC(rc);
69 return VINF_SUCCESS;
72 default:
73 return VERR_NOT_SUPPORTED;