GDB (xrefs)
Classes | Defines | Functions | Variables
/home/stan/gdb/src/gdb/python/py-frame.c File Reference
#include "defs.h"
#include "charset.h"
#include "block.h"
#include "frame.h"
#include "exceptions.h"
#include "symtab.h"
#include "stack.h"
#include "value.h"
#include "python-internal.h"
#include "symfile.h"
#include "objfiles.h"
#include "unwind_stop_reasons.def"

Go to the source code of this file.

Classes

struct  frame_object

Defines

#define FRAPY_REQUIRE_VALID(frame_obj, frame)
#define SET(name, description)
#define FIRST_ERROR(name)

Functions

struct frame_infoframe_object_to_frame_info (PyObject *obj)
static PyObjectfrapy_str (PyObject *self)
static PyObjectfrapy_is_valid (PyObject *self, PyObject *args)
static PyObjectfrapy_name (PyObject *self, PyObject *args)
static PyObjectfrapy_type (PyObject *self, PyObject *args)
static PyObjectfrapy_arch (PyObject *self, PyObject *args)
static PyObjectfrapy_unwind_stop_reason (PyObject *self, PyObject *args)
static PyObjectfrapy_pc (PyObject *self, PyObject *args)
static PyObjectfrapy_block (PyObject *self, PyObject *args)
static PyObjectfrapy_function (PyObject *self, PyObject *args)
PyObjectframe_info_to_frame_object (struct frame_info *frame)
static PyObjectfrapy_older (PyObject *self, PyObject *args)
static PyObjectfrapy_newer (PyObject *self, PyObject *args)
static PyObjectfrapy_find_sal (PyObject *self, PyObject *args)
static PyObjectfrapy_read_var (PyObject *self, PyObject *args)
static PyObjectfrapy_select (PyObject *self, PyObject *args)
PyObjectgdbpy_newest_frame (PyObject *self, PyObject *args)
PyObjectgdbpy_selected_frame (PyObject *self, PyObject *args)
PyObjectgdbpy_frame_stop_reason_string (PyObject *self, PyObject *args)
static PyObjectfrapy_richcompare (PyObject *self, PyObject *other, int op)
int gdbpy_initialize_frames (void)

Variables

static PyMethodDef frame_object_methods []
PyTypeObject frame_object_type

Define Documentation

#define FIRST_ERROR (   name)
Value:
if (PyModule_AddIntConstant (gdb_module, "FRAME_"#name, name) < 0) \
    return -1;
#define FRAPY_REQUIRE_VALID (   frame_obj,
  frame 
)
Value:
do {                                            \
      frame = frame_object_to_frame_info (frame_obj);   \
      if (frame == NULL)                                \
        error (_("Frame is invalid."));                 \
    } while (0)

Definition at line 50 of file py-frame.c.

Referenced by frapy_arch(), frapy_block(), frapy_find_sal(), frapy_function(), frapy_name(), frapy_newer(), frapy_older(), frapy_pc(), frapy_read_var(), frapy_select(), frapy_type(), and frapy_unwind_stop_reason().

#define SET (   name,
  description 
)
Value:
if (PyModule_AddIntConstant (gdb_module, "FRAME_"#name, name) < 0) \
    return -1;

Function Documentation

struct frame_info* frame_object_to_frame_info ( PyObject obj) [read]
static PyObject* frapy_arch ( PyObject self,
PyObject args 
) [static]
static PyObject* frapy_block ( PyObject self,
PyObject args 
) [static]
static PyObject* frapy_find_sal ( PyObject self,
PyObject args 
) [static]
static PyObject* frapy_function ( PyObject self,
PyObject args 
) [static]
static PyObject* frapy_is_valid ( PyObject self,
PyObject args 
) [static]
static PyObject* frapy_name ( PyObject self,
PyObject args 
) [static]
static PyObject* frapy_newer ( PyObject self,
PyObject args 
) [static]
static PyObject* frapy_older ( PyObject self,
PyObject args 
) [static]
static PyObject* frapy_pc ( PyObject self,
PyObject args 
) [static]
static PyObject* frapy_read_var ( PyObject self,
PyObject args 
) [static]
static PyObject* frapy_richcompare ( PyObject self,
PyObject other,
int  op 
) [static]

Definition at line 600 of file py-frame.c.

References frame_id_eq(), and frame_object_type.

static PyObject* frapy_select ( PyObject self,
PyObject args 
) [static]
static PyObject* frapy_str ( PyObject self) [static]

Definition at line 81 of file py-frame.c.

References fprint_frame_id(), mem_fileopen(), ui_file_xstrdup(), and xfree().

static PyObject* frapy_type ( PyObject self,
PyObject args 
) [static]
static PyObject* frapy_unwind_stop_reason ( PyObject self,
PyObject args 
) [static]

Definition at line 576 of file py-frame.c.

References _, frame_stop_reason_string(), host_charset(), and gdb_exception::reason.

PyObject* gdbpy_newest_frame ( PyObject self,
PyObject args 
)
PyObject* gdbpy_selected_frame ( PyObject self,
PyObject args 
)

Variable Documentation

PyMethodDef frame_object_methods[] [static]

Definition at line 662 of file py-frame.c.

PyTypeObject frame_object_type
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines