GDB (xrefs)
Enumerations | Functions
py-prettyprint.c File Reference
#include "defs.h"
#include "objfiles.h"
#include "symtab.h"
#include "language.h"
#include "valprint.h"
#include "extension-priv.h"
#include "python.h"
#include "python-internal.h"

Go to the source code of this file.

Enumerations

enum  string_repr_result {
  STRING_REPR_NONE, STRING_REPR_ERROR, STRING_REPR_OK, string_repr_none,
  string_repr_error, string_repr_ok
}
 

Functions

static PyObject * search_pp_list (PyObject *list, PyObject *value)
 
static PyObject * find_pretty_printer_from_objfiles (PyObject *value)
 
static PyObject * find_pretty_printer_from_progspace (PyObject *value)
 
static PyObject * find_pretty_printer_from_gdb (PyObject *value)
 
static PyObject * find_pretty_printer (PyObject *value)
 
static PyObject * pretty_print_one_value (PyObject *printer, struct value **out_value)
 
char * gdbpy_get_display_hint (PyObject *printer)
 
static void print_stack_unless_memory_error (struct ui_file *stream)
 
static enum string_repr_result print_string_repr (PyObject *printer, const char *hint, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct language_defn *language, struct gdbarch *gdbarch)
 
static void py_restore_tstate (void *p)
 
static PyObject * push_dummy_python_frame (void)
 
static void print_children (PyObject *printer, const char *hint, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct language_defn *language, int is_py_none)
 
enum ext_lang_rc gdbpy_apply_val_pretty_printer (const struct extension_language_defn *extlang, struct type *type, const gdb_byte *valaddr, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, const struct value *val, const struct value_print_options *options, const struct language_defn *language)
 
PyObject * apply_varobj_pretty_printer (PyObject *printer_obj, struct value **replacement, struct ui_file *stream)
 
PyObject * gdbpy_get_varobj_pretty_printer (struct value *value)
 
PyObject * gdbpy_default_visualizer (PyObject *self, PyObject *args)
 

Enumeration Type Documentation

Enumerator
STRING_REPR_NONE 
STRING_REPR_ERROR 
STRING_REPR_OK 
string_repr_none 
string_repr_error 
string_repr_ok 

Definition at line 31 of file py-prettyprint.c.

Function Documentation

PyObject* apply_varobj_pretty_printer ( PyObject *  printer_obj,
struct value **  replacement,
struct ui_file stream 
)
static PyObject* find_pretty_printer ( PyObject *  value)
static
static PyObject* find_pretty_printer_from_gdb ( PyObject *  value)
static
static PyObject* find_pretty_printer_from_objfiles ( PyObject *  value)
static
static PyObject* find_pretty_printer_from_progspace ( PyObject *  value)
static
enum ext_lang_rc gdbpy_apply_val_pretty_printer ( const struct extension_language_defn extlang,
struct type type,
const gdb_byte valaddr,
int  embedded_offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
const struct value val,
const struct value_print_options options,
const struct language_defn language 
)
PyObject* gdbpy_default_visualizer ( PyObject *  self,
PyObject *  args 
)

Definition at line 848 of file py-prettyprint.c.

References _, find_pretty_printer(), and value_object_to_value().

char* gdbpy_get_display_hint ( PyObject *  printer)
PyObject* gdbpy_get_varobj_pretty_printer ( struct value value)
static PyObject* pretty_print_one_value ( PyObject *  printer,
struct value **  out_value 
)
static
static void print_children ( PyObject *  printer,
const char *  hint,
struct ui_file stream,
int  recurse,
const struct value_print_options options,
const struct language_defn language,
int  is_py_none 
)
static
static void print_stack_unless_memory_error ( struct ui_file stream)
static
static enum string_repr_result print_string_repr ( PyObject *  printer,
const char *  hint,
struct ui_file stream,
int  recurse,
const struct value_print_options options,
const struct language_defn language,
struct gdbarch gdbarch 
)
static
static PyObject* push_dummy_python_frame ( void  )
static

Definition at line 405 of file py-prettyprint.c.

References code, make_cleanup(), Py_DECREF, and py_restore_tstate().

Referenced by print_children().

static void py_restore_tstate ( void *  p)
static

Definition at line 394 of file py-prettyprint.c.

Referenced by push_dummy_python_frame().

static PyObject* search_pp_list ( PyObject *  list,
PyObject *  value 
)
static