Buffer for building Opdis instructions from libopcodes output. More...
#include <bfd.h>
#include <dis-asm.h>
Go to the source code of this file.
Data Structures | |
struct | opdis_insn_buffer_t |
A buffer that stores the output of libopcodes before processing. More... | |
Defines | |
#define | LIBCALL |
#define | OPDIS_MAX_ITEMS 64 |
#define | OPDIS_MAX_ITEM_SIZE 64 |
#define | OPDIS_MAX_INSN_STR 128 |
Typedefs | |
typedef opdis_insn_buffer_t * | opdis_insn_buf_t |
Functions | |
opdis_insn_buf_t LIBCALL | opdis_insn_buf_alloc (unsigned int max_items, unsigned int max_item_size, unsigned int max_insn_str) |
Allocate an instruction buffer. | |
void LIBCALL | opdis_insn_buf_free (opdis_insn_buf_t buf) |
Free an instruction buffer. | |
int LIBCALL | opdis_insn_buf_append (opdis_insn_buf_t buf, const char *item) |
Append a string to an opdis_insn_buffer_t. | |
void LIBCALL | opdis_insn_buf_clear (opdis_insn_buf_t buf) |
Clear the data in an opdis_insn_buffer_t. |
Buffer for building Opdis instructions from libopcodes output.
This defines the buffer data structure used by libopdis to capture libopcodes output.