GDB (xrefs)
Classes | Macros | Functions | Variables
py-frame.c File Reference
#include "defs.h"
#include "charset.h"
#include "block.h"
#include "frame.h"
#include "symtab.h"
#include "stack.h"
#include "value.h"
#include "python-internal.h"
#include "symfile.h"
#include "objfiles.h"
#include "user-regs.h"
#include "unwind_stop_reasons.def"

Go to the source code of this file.

Classes

struct  frame_object
 

Macros

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

Functions

struct frame_infoframe_object_to_frame_info (PyObject *obj)
 
static PyObject * frapy_str (PyObject *self)
 
static PyObject * frapy_is_valid (PyObject *self, PyObject *args)
 
static PyObject * frapy_name (PyObject *self, PyObject *args)
 
static PyObject * frapy_type (PyObject *self, PyObject *args)
 
static PyObject * frapy_arch (PyObject *self, PyObject *args)
 
static PyObject * frapy_unwind_stop_reason (PyObject *self, PyObject *args)
 
static PyObject * frapy_pc (PyObject *self, PyObject *args)
 
static PyObject * frapy_read_register (PyObject *self, PyObject *args)
 
static PyObject * frapy_block (PyObject *self, PyObject *args)
 
static PyObject * frapy_function (PyObject *self, PyObject *args)
 
PyObject * frame_info_to_frame_object (struct frame_info *frame)
 
static PyObject * frapy_older (PyObject *self, PyObject *args)
 
static PyObject * frapy_newer (PyObject *self, PyObject *args)
 
static PyObject * frapy_find_sal (PyObject *self, PyObject *args)
 
static PyObject * frapy_read_var (PyObject *self, PyObject *args)
 
static PyObject * frapy_select (PyObject *self, PyObject *args)
 
PyObject * gdbpy_newest_frame (PyObject *self, PyObject *args)
 
PyObject * gdbpy_selected_frame (PyObject *self, PyObject *args)
 
PyObject * gdbpy_frame_stop_reason_string (PyObject *self, PyObject *args)
 
static PyObject * frapy_richcompare (PyObject *self, PyObject *other, int op)
 
int gdbpy_initialize_frames (void)
 

Variables

static PyMethodDef frame_object_methods []
 
PyTypeObject frame_object_type
 

Macro Definition Documentation

#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)
#define _(String)
Definition: gdb_locale.h:40
struct frame_info * frame_object_to_frame_info(PyObject *obj)
Definition: py-frame.c:62
void error(const char *fmt,...)
Definition: errors.c:38

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_register(), 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;
const char *const name
Definition: aarch64-tdep.c:68
PyObject * gdb_module
Definition: python.c:112

Function Documentation

PyObject* frame_info_to_frame_object ( struct frame_info frame)
struct frame_info* frame_object_to_frame_info ( PyObject *  obj)
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_register ( 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 678 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
PyObject* gdbpy_frame_stop_reason_string ( PyObject *  self,
PyObject *  args 
)

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

References _, host_charset(), and unwind_stop_reason_to_string().

int gdbpy_initialize_frames ( void  )
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 736 of file py-frame.c.

PyTypeObject frame_object_type