GDB (API)
Defines | Typedefs | Functions
/home/stan/gdb/src/gdb/python/py-arch.c File Reference
#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.

Defines

#define ARCHPY_REQUIRE_VALID(arch_obj, arch)

Typedefs

typedef struct
arch_object_type_object 
arch_object

Functions

struct gdbarch * arch_object_to_gdbarch (PyObject *obj)
PyObjectgdbarch_to_arch_object (struct gdbarch *gdbarch)
int gdbpy_initialize_arch (void)

Define Documentation

#define ARCHPY_REQUIRE_VALID (   arch_obj,
  arch 
)
Value:
do {                                                            \
    arch = arch_object_to_gdbarch (arch_obj);                   \
    if (arch == NULL)                                           \
      {                                                         \
        PyErr_SetString (PyExc_RuntimeError,                    \
                         _("Architecture is invalid."));        \
        return NULL;                                            \
      }                                                         \
  } while (0)

Definition at line 34 of file py-arch.c.


Typedef Documentation

typedef struct arch_object_type_object arch_object

Function Documentation

struct gdbarch* arch_object_to_gdbarch ( PyObject obj) [read]

Definition at line 68 of file py-arch.c.

PyObject* gdbarch_to_arch_object ( struct gdbarch *  gdbarch)

Definition at line 80 of file py-arch.c.

Definition at line 261 of file py-arch.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines