#include "defs.h"
#include "gdbarch.h"
#include "arch-utils.h"
#include "disasm.h"
#include "python-internal.h"
Go to the source code of this file.
#define ARCHPY_REQUIRE_VALID |
( |
|
arch_obj, |
|
|
|
arch |
|
) |
| |
Value:do { \
if (arch == NULL) \
{ \
PyErr_SetString (PyExc_RuntimeError, \
_(
"Architecture is invalid."));
\
} \
} while (0)
struct gdbarch * arch_object_to_gdbarch(PyObject *obj)
Definition at line 34 of file py-arch.c.
Referenced by archpy_disassemble(), and archpy_name().
static void* arch_object_data_init |
( |
struct gdbarch * |
gdbarch | ) |
|
|
static |
struct gdbarch* arch_object_to_gdbarch |
( |
PyObject * |
obj | ) |
|
static PyObject* archpy_disassemble |
( |
PyObject * |
self, |
|
|
PyObject * |
args, |
|
|
PyObject * |
kw |
|
) |
| |
|
static |
Definition at line 116 of file py-arch.c.
References _, ARCHPY_REQUIRE_VALID, CATCH, END_CATCH, gdb_print_insn(), GDB_PY_LLU_ARG, gdb_py_long_from_ulongest, gdbpy_convert_exception(), mem_fileopen(), Py_DECREF, RETURN_MASK_ALL, TRY, ui_file_delete(), ui_file_xstrdup(), and xfree().
static PyObject* archpy_name |
( |
PyObject * |
self, |
|
|
PyObject * |
args |
|
) |
| |
|
static |
PyTypeObject arch_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF |
( |
"arch_object" |
| ) |
|
PyObject* gdbarch_to_arch_object |
( |
struct gdbarch * |
gdbarch | ) |
|
int gdbpy_initialize_arch |
( |
void |
| ) |
|
PyMethodDef arch_object_methods[] |
|
static |
Initial value:= {
"name () -> String.\n\
Return the name of the architecture as a string value." },
METH_VARARGS | METH_KEYWORDS,
"disassemble (start_pc [, end_pc [, count]]) -> List.\n\
Return a list of at most COUNT disassembled instructions from START_PC to\n\
END_PC." },
{NULL}
}
static PyObject * archpy_disassemble(PyObject *self, PyObject *args, PyObject *kw)
static PyObject * archpy_name(PyObject *self, PyObject *args)
Definition at line 272 of file py-arch.c.
PyTypeObject arch_object_type |