GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Functions | Variables
py-instruction.c File Reference
#include "defs.h"
#include "py-instruction.h"

Go to the source code of this file.

Classes

struct  py_insn_obj
 

Functions

static PyObjectpy_insn_getter (PyObject *self, void *closure)
 
PyTypeObject * py_insn_get_insn_type ()
 
static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION gdbpy_initialize_instruction (void)
 
 GDBPY_INITIALIZE_FILE (gdbpy_initialize_instruction)
 

Variables

PyTypeObject py_insn_type
 
static gdb_PyGetSetDef py_insn_getset []
 

Function Documentation

◆ GDBPY_INITIALIZE_FILE()

GDBPY_INITIALIZE_FILE ( gdbpy_initialize_instruction )

◆ gdbpy_initialize_instruction()

static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION gdbpy_initialize_instruction ( void )
static

Definition at line 85 of file py-instruction.c.

References py_insn_get_insn_type().

◆ py_insn_get_insn_type()

PyTypeObject * py_insn_get_insn_type ( )

Definition at line 59 of file py-instruction.c.

References py_insn_getset, and py_insn_type.

Referenced by gdbpy_initialize_instruction(), and gdbpy_initialize_record().

◆ py_insn_getter()

static PyObject * py_insn_getter ( PyObject * self,
void * closure )
static

Definition at line 40 of file py-instruction.c.

Variable Documentation

◆ py_insn_getset

gdb_PyGetSetDef py_insn_getset[]
static
Initial value:
=
{
{ "pc", py_insn_getter, NULL, "instruction address", NULL},
{ "data", py_insn_getter, NULL, "instruction memory", NULL},
{ "decoded", py_insn_getter, NULL, "decoded instruction", NULL},
{ "size", py_insn_getter, NULL, "instruction size in bytes", NULL},
{NULL}
}
static PyObject * py_insn_getter(PyObject *self, void *closure)

Definition at line 47 of file py-instruction.c.

Referenced by py_insn_get_insn_type().

◆ py_insn_type

PyTypeObject py_insn_type
Initial value:
= {
PyVarObject_HEAD_INIT (NULL, 0)
}

Definition at line 27 of file py-instruction.c.

Referenced by py_insn_get_insn_type().