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 |
Variables | |
static PyMethodDef | lazy_string_object_methods [] |
static gdb_PyGetSetDef | lazy_string_object_getset [] |
PyTypeObject | lazy_string_object_type |
|
extern |
PyObject * gdbpy_create_lazy_string_object | ( | CORE_ADDR | address, |
long | length, | ||
const char * | encoding, | ||
struct type * | type ) |
Definition at line 174 of file py-lazy-string.c.
References lazy_string_object::address, check_typedef(), type::code(), lazy_string_object::encoding, gdbpy_gdb_memory_error, get_array_bounds(), lazy_string_object_type, type::length(), lazy_string_object::length, lazy_string_object::type, and type_to_type_object().
Referenced by valpy_lazy_string().
void gdbpy_extract_lazy_string | ( | PyObject * | string, |
CORE_ADDR * | addr, | ||
struct type ** | str_elt_type, | ||
long * | length, | ||
gdb::unique_xmalloc_ptr< char > * | encoding ) |
Definition at line 282 of file py-lazy-string.c.
References lazy_string_object::address, lazy_string_object::encoding, gdbpy_is_lazy_string(), type::length(), lazy_string_object::length, and stpy_lazy_string_elt_type().
Referenced by print_children(), print_string_repr(), and varobj_value_get_print_value().
GDBPY_INITIALIZE_FILE | ( | gdbpy_initialize_lazy_string | ) |
|
static |
Definition at line 238 of file py-lazy-string.c.
References lazy_string_object_type.
int gdbpy_is_lazy_string | ( | PyObject * | result | ) |
Definition at line 250 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().
Definition at line 104 of file py-lazy-string.c.
References lazy_string_object::address, check_typedef(), type::code(), GDB_PY_HANDLE_EXCEPTION, gdbpy_gdb_memory_error, lazy_string_object::length, lookup_array_range_type(), type::target_type(), lazy_string_object::type, type_object_to_type(), value_at_lazy(), value_from_pointer(), and value_to_value_object().
|
static |
Definition at line 159 of file py-lazy-string.c.
References lazy_string_object::encoding, and xfree().
Definition at line 60 of file py-lazy-string.c.
References lazy_string_object::address, and gdb_py_object_from_ulongest().
Definition at line 68 of file py-lazy-string.c.
References lazy_string_object::encoding.
Definition at line 87 of file py-lazy-string.c.
References gdb_py_object_from_longest(), and lazy_string_object::length.
Definition at line 95 of file py-lazy-string.c.
References lazy_string_object::type.
|
static |
Definition at line 258 of file py-lazy-string.c.
References check_typedef(), type::code(), type::target_type(), lazy_string_object::type, and type_object_to_type().
Referenced by gdbpy_extract_lazy_string(), and stpy_str().
Definition at line 302 of file py-lazy-string.c.
References lazy_string_object::address, string_file::c_str(), lazy_string_object::encoding, GDB_PY_HANDLE_EXCEPTION, get_user_print_options(), host_string_to_python_string(), lazy_string_object::length, stpy_lazy_string_elt_type(), and val_print_string().
|
static |
Definition at line 336 of file py-lazy-string.c.
|
static |
Definition at line 329 of file py-lazy-string.c.
PyTypeObject lazy_string_object_type |
Definition at line 344 of file py-lazy-string.c.
Referenced by gdbpy_create_lazy_string_object(), gdbpy_initialize_lazy_string(), and gdbpy_is_lazy_string().