/* $Id$ */
/** @file
* DBGC - Debugger Console, Native Functions.
*/
/*
* Copyright (C) 2006-2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#include "DBGCInternal.h"
/*******************************************************************************
* Global Variables *
*******************************************************************************/
/** Pointer to head of the list of exteranl functions. */
/**
* @callback_method_impl{The randu32() function implementation.}
*/
static DECLCALLBACK(int) dbgcFuncRandU32(PCDBGCFUNC pFunc, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, uint32_t cArgs,
{
return VINF_SUCCESS;
}
/** Functions descriptors for the basic functions. */
{
/* pszCmd, cArgsMin, cArgsMax, paArgDescs, cArgDescs, fFlags, pfnHandler pszSyntax, ....pszDescription */
};
/** The number of function descriptions in g_aDbgcFuncs. */
/**
* Looks up a function.
*
* @returns Pointer to the function descriptor on success, NULL if not found.
* @param pDbgc The DBGC instance.
* @param pachName The first charater in the name.
* @param cchName The length of the function name.
* @param fExternal Whether it's an external function.
*/
{
if (!fExternal)
{
/* emulation first, so commands can be overloaded (info ++). */
while (cLeft-- > 0)
{
return pFunc;
pFunc++;
}
{
return &g_aDbgcFuncs[iFunc];
}
}
else
{
{
{
}
}
}
return NULL;
}