GDB (xrefs)
|
#include "defs.h"
#include "python-internal.h"
#include "charset.h"
#include "value.h"
#include "valprint.h"
#include "language.h"
Go to the source code of this file.
Classes | |
struct | lazy_string_object |
Functions | |
PyTypeObject lazy_string_object_type | CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("lazy_string_object") |
static PyObject * | stpy_get_address (PyObject *self, void *closure) |
static PyObject * | stpy_get_encoding (PyObject *self, void *closure) |
static PyObject * | stpy_get_length (PyObject *self, void *closure) |
static PyObject * | stpy_get_type (PyObject *self, void *closure) |
static PyObject * | stpy_convert_to_value (PyObject *self, PyObject *args) |
static void | stpy_dealloc (PyObject *self) |
PyObject * | gdbpy_create_lazy_string_object (CORE_ADDR address, long length, const char *encoding, struct type *type) |
int | gdbpy_initialize_lazy_string (void) |
int | gdbpy_is_lazy_string (PyObject *result) |
void | gdbpy_extract_lazy_string (PyObject *string, CORE_ADDR *addr, struct type **str_type, long *length, char **encoding) |
Variables | |
static PyMethodDef | lazy_string_object_methods [] |
static PyGetSetDef | lazy_string_object_getset [] |
PyTypeObject | lazy_string_object_type |
PyTypeObject lazy_string_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "lazy_string_object" | ) |
PyObject* gdbpy_create_lazy_string_object | ( | CORE_ADDR | address, |
long | length, | ||
const char * | encoding, | ||
struct type * | type | ||
) |
Definition at line 129 of file py-lazy-string.c.
References _, lazy_string_object::address, value::address, lazy_string_object::encoding, gdbpy_gdb_memory_error, lazy_string_object_type, lazy_string_object::length, lazy_string_object::type, and type.
Referenced by valpy_lazy_string().
void gdbpy_extract_lazy_string | ( | PyObject * | string, |
CORE_ADDR * | addr, | ||
struct type ** | str_type, | ||
long * | length, | ||
char ** | encoding | ||
) |
Definition at line 188 of file py-lazy-string.c.
References lazy_string_object::address, lazy_string_object::encoding, gdb_assert, gdbpy_is_lazy_string(), value::lazy, lazy_string_object::length, and lazy_string_object::type.
Referenced by print_children(), print_string_repr(), and varobj_value_get_print_value().
int gdbpy_initialize_lazy_string | ( | void | ) |
Definition at line 165 of file py-lazy-string.c.
References lazy_string_object_type.
Referenced by _initialize_python().
int gdbpy_is_lazy_string | ( | PyObject * | result | ) |
Definition at line 177 of file py-lazy-string.c.
References lazy_string_object_type.
Referenced by convert_value_from_python(), gdbpy_extract_lazy_string(), pretty_print_one_value(), print_children(), print_string_repr(), and varobj_value_get_print_value().
|
static |
Definition at line 95 of file py-lazy-string.c.
References _, lazy_string_object::address, CATCH, END_CATCH, GDB_PY_HANDLE_EXCEPTION, gdbpy_gdb_memory_error, RETURN_MASK_ALL, TRY, lazy_string_object::type, value_at_lazy(), and value_to_value_object().
|
static |
Definition at line 121 of file py-lazy-string.c.
References lazy_string_object::encoding, and xfree().
|
static |
Definition at line 52 of file py-lazy-string.c.
References lazy_string_object::address, and gdb_py_long_from_ulongest.
|
static |
Definition at line 60 of file py-lazy-string.c.
References lazy_string_object::encoding.
|
static |
Definition at line 79 of file py-lazy-string.c.
References lazy_string_object::length.
|
static |
Definition at line 87 of file py-lazy-string.c.
References lazy_string_object::type, and type_to_type_object().
|
static |
Definition at line 213 of file py-lazy-string.c.
|
static |
Definition at line 206 of file py-lazy-string.c.
PyTypeObject lazy_string_object_type |
Definition at line 221 of file py-lazy-string.c.
Referenced by gdbpy_create_lazy_string_object(), gdbpy_initialize_lazy_string(), and gdbpy_is_lazy_string().