GDB (xrefs)
Enumerations | Functions
/home/stan/gdb/src/gdb/python/py-framefilter.c File Reference
#include "defs.h"
#include "objfiles.h"
#include "symtab.h"
#include "language.h"
#include "exceptions.h"
#include "arch-utils.h"
#include "python.h"
#include "ui-out.h"
#include "valprint.h"
#include "annotate.h"
#include "hashtab.h"
#include "demangle.h"
#include "mi/mi-cmds.h"
#include "python-internal.h"

Go to the source code of this file.

Enumerations

enum  mi_print_types { MI_PRINT_ARGS, MI_PRINT_LOCALS }

Functions

static enum py_bt_status extract_sym (PyObject *obj, char **name, struct symbol **sym, const struct language_defn **language)
static enum py_bt_status extract_value (PyObject *obj, struct value **value)
static int mi_should_print (struct symbol *sym, enum mi_print_types type)
static enum py_bt_status py_print_type (struct ui_out *out, struct value *val)
static enum py_bt_status py_print_value (struct ui_out *out, struct value *val, const struct value_print_options *opts, int indent, enum py_frame_args args_type, const struct language_defn *language)
static PyObjectget_py_iter_from_func (PyObject *filter, char *func)
static enum py_bt_status py_print_single_arg (struct ui_out *out, const char *sym_name, struct frame_arg *fa, struct value *fv, const struct value_print_options *opts, enum py_frame_args args_type, int print_args_field, const struct language_defn *language)
static enum py_bt_status enumerate_args (PyObject *iter, struct ui_out *out, enum py_frame_args args_type, int print_args_field, struct frame_info *frame)
static enum py_bt_status enumerate_locals (PyObject *iter, struct ui_out *out, int indent, enum py_frame_args args_type, int print_args_field, struct frame_info *frame)
static enum py_bt_status py_mi_print_variables (PyObject *filter, struct ui_out *out, struct value_print_options *opts, enum py_frame_args args_type, struct frame_info *frame)
static enum py_bt_status py_print_locals (PyObject *filter, struct ui_out *out, enum py_frame_args args_type, int indent, struct frame_info *frame)
static enum py_bt_status py_print_args (PyObject *filter, struct ui_out *out, enum py_frame_args args_type, struct frame_info *frame)
static enum py_bt_status py_print_frame (PyObject *filter, int flags, enum py_frame_args args_type, struct ui_out *out, int indent, htab_t levels_printed)
static PyObjectbootstrap_python_frame_filters (struct frame_info *frame, int frame_low, int frame_high)
enum py_bt_status apply_frame_filter (struct frame_info *frame, int flags, enum py_frame_args args_type, struct ui_out *out, int frame_low, int frame_high)

Enumeration Type Documentation

Enumerator:
MI_PRINT_ARGS 
MI_PRINT_LOCALS 

Definition at line 35 of file py-framefilter.c.


Function Documentation

enum py_bt_status apply_frame_filter ( struct frame_info frame,
int  flags,
enum py_frame_args  args_type,
struct ui_out out,
int  frame_low,
int  frame_high 
)
static PyObject* bootstrap_python_frame_filters ( struct frame_info frame,
int  frame_low,
int  frame_high 
) [static]
static enum py_bt_status enumerate_args ( PyObject iter,
struct ui_out out,
enum py_frame_args  args_type,
int  print_args_field,
struct frame_info frame 
) [static]
static enum py_bt_status enumerate_locals ( PyObject iter,
struct ui_out out,
int  indent,
enum py_frame_args  args_type,
int  print_args_field,
struct frame_info frame 
) [static]
static enum py_bt_status extract_sym ( PyObject obj,
char **  name,
struct symbol **  sym,
const struct language_defn **  language 
) [static]
static enum py_bt_status extract_value ( PyObject obj,
struct value **  value 
) [static]

Definition at line 122 of file py-framefilter.c.

References convert_value_from_python(), PY_BT_ERROR, PY_BT_OK, and Py_DECREF.

Referenced by enumerate_args(), and enumerate_locals().

static PyObject* get_py_iter_from_func ( PyObject filter,
char *  func 
) [static]

Definition at line 313 of file py-framefilter.c.

References Py_DECREF.

Referenced by py_mi_print_variables(), py_print_args(), py_print_frame(), and py_print_locals().

static int mi_should_print ( struct symbol sym,
enum mi_print_types  type 
) [static]
static enum py_bt_status py_mi_print_variables ( PyObject filter,
struct ui_out out,
struct value_print_options opts,
enum py_frame_args  args_type,
struct frame_info frame 
) [static]
static enum py_bt_status py_print_args ( PyObject filter,
struct ui_out out,
enum py_frame_args  args_type,
struct frame_info frame 
) [static]
static enum py_bt_status py_print_frame ( PyObject filter,
int  flags,
enum py_frame_args  args_type,
struct ui_out out,
int  indent,
htab_t  levels_printed 
) [static]
static enum py_bt_status py_print_locals ( PyObject filter,
struct ui_out out,
enum py_frame_args  args_type,
int  indent,
struct frame_info frame 
) [static]
static enum py_bt_status py_print_single_arg ( struct ui_out out,
const char *  sym_name,
struct frame_arg fa,
struct value fv,
const struct value_print_options opts,
enum py_frame_args  args_type,
int  print_args_field,
const struct language_defn language 
) [static]
static enum py_bt_status py_print_type ( struct ui_out out,
struct value val 
) [static]
static enum py_bt_status py_print_value ( struct ui_out out,
struct value val,
const struct value_print_options opts,
int  indent,
enum py_frame_args  args_type,
const struct language_defn language 
) [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines