GDB (API)
Functions
/home/stan/gdb/src/gdb/python/py-utils.c File Reference
#include "defs.h"
#include "charset.h"
#include "value.h"
#include "python-internal.h"

Go to the source code of this file.

Functions

struct cleanup * make_cleanup_py_decref (PyObject *py)
struct cleanup * make_cleanup_py_xdecref (PyObject *py)
PyObjectpython_string_to_unicode (PyObject *obj)
char * unicode_to_target_string (PyObject *unicode_str)
char * python_string_to_target_string (PyObject *obj)
PyObjectpython_string_to_target_python_string (PyObject *obj)
char * python_string_to_host_string (PyObject *obj)
int gdbpy_is_string (PyObject *obj)
char * gdbpy_obj_to_string (PyObject *obj)
char * gdbpy_exception_to_string (PyObject *ptype, PyObject *pvalue)
void gdbpy_convert_exception (struct gdb_exception exception)
int get_addr_from_python (PyObject *obj, CORE_ADDR *addr)
PyObjectgdb_py_object_from_longest (LONGEST l)
PyObjectgdb_py_object_from_ulongest (ULONGEST l)
int gdb_py_int_as_long (PyObject *obj, long *result)
PyObjectgdb_py_generic_dict (PyObject *self, void *closure)
int gdb_pymodule_addobject (PyObject *module, const char *name, PyObject *object)

Function Documentation

PyObject* gdb_py_generic_dict ( PyObject self,
void *  closure 
)

Definition at line 417 of file py-utils.c.

int gdb_py_int_as_long ( PyObject obj,
long *  result 
)

Definition at line 404 of file py-utils.c.

Definition at line 357 of file py-utils.c.

Definition at line 379 of file py-utils.c.

int gdb_pymodule_addobject ( PyObject module,
const char *  name,
PyObject object 
)

Definition at line 434 of file py-utils.c.

void gdbpy_convert_exception ( struct gdb_exception  exception)

Definition at line 295 of file py-utils.c.

char* gdbpy_exception_to_string ( PyObject ptype,
PyObject pvalue 
)

Definition at line 268 of file py-utils.c.

Definition at line 228 of file py-utils.c.

char* gdbpy_obj_to_string ( PyObject obj)

Definition at line 242 of file py-utils.c.

int get_addr_from_python ( PyObject obj,
CORE_ADDR addr 
)

Definition at line 315 of file py-utils.c.

struct cleanup* make_cleanup_py_decref ( PyObject py) [read]

Definition at line 41 of file py-utils.c.

struct cleanup* make_cleanup_py_xdecref ( PyObject py) [read]

Definition at line 63 of file py-utils.c.

Definition at line 210 of file py-utils.c.

Definition at line 191 of file py-utils.c.

Definition at line 171 of file py-utils.c.

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

char* unicode_to_target_string ( PyObject unicode_str)

Definition at line 149 of file py-utils.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines