Disasm.cpp revision 0567c98c7efbace880e768e9d2eae3c91e1ea059
/* $Id$ */
/** @file
* VBox disassembler - Disassemble and optionally format.
*/
/*
* Copyright (C) 2006-2012 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 *
*******************************************************************************/
#define LOG_GROUP LOG_GROUP_DIS
#include <VBox/disopcode.h>
#include "DisasmInternal.h"
/**
* Disassembles one instruction
*
* @returns VBox error code
* @param pvInstr Pointer to the instruction to disassemble.
* @param enmCpuMode The CPU state.
* @param pDis The disassembler state (output).
* @param pcbInstr Where to store the size of the instruction. NULL is
* allowed.
* @param pszOutput Storage for disassembled instruction
* @param cbOutput Size of the output buffer.
*
* @todo Define output callback.
*/
DISDECL(int) DISInstrToStr(void const *pvInstr, DISCPUMODE enmCpuMode, PDISSTATE pDis, uint32_t *pcbInstr,
{
}
/**
* Disassembles one instruction with a byte fetcher caller.
*
* @returns VBox error code
* @param uInstrAddr Pointer to the structure to disassemble.
* @param enmCpuMode The CPU mode.
* @param pfnCallback The byte fetcher callback.
* @param pvUser The user argument (found in
* DISSTATE::pvUser).
* @param pDis The disassembler state (output).
* @param pcbInstr Where to store the size of the instruction. NULL is
* allowed.
* @param pszOutput Storage for disassembled instruction.
* @param cbOutput Size of the output buffer.
*
* @todo Define output callback.
*/
DISDECL(int) DISInstrToStrWithReader(RTUINTPTR uInstrAddr, DISCPUMODE enmCpuMode, PFNDISREADBYTES pfnReadBytes, void *pvUser,
{
}
/**
* Disassembles one instruction; only fully disassembly an instruction if it matches the filter criteria
*
* @returns VBox error code
* @param uInstrAddr Pointer to the structure to disassemble.
* @param enmCpuMode The CPU mode.
* @param pfnCallback The byte fetcher callback.
* @param uFilter Instruction filter.
* @param pDis Where to return the disassembled instruction info.
* @param pcbInstr Where to store the size of the instruction. NULL is
* allowed.
* @param pszOutput Storage for disassembled instruction.
* @param cbOutput Size of the output buffer.
*
* @todo Define output callback.
*/
{
/* Don't filter if formatting is desired. */
{
{
}
}
return rc;
}