GDB (xrefs)
Loading...
Searching...
No Matches
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 "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

frame_info_ptr frame_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 (frame_info_ptr 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)
 
static PyObject * frapy_level (PyObject *self, PyObject *args)
 
static PyObject * frapy_language (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

◆ FRAPY_REQUIRE_VALID

#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)
frame_info_ptr frame_object_to_frame_info(PyObject *obj)
Definition: py-frame.c:61

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

◆ SET

#define SET (   name,
  description 
)
Value:
if (PyModule_AddIntConstant (gdb_module, "FRAME_"#name, name) < 0) \
return -1;
const char *const name
Definition: aarch64-tdep.c:67
PyObject * gdb_module
Definition: python.c:84

Function Documentation

◆ frame_info_to_frame_object()

PyObject * frame_info_to_frame_object ( frame_info_ptr  frame)

◆ frame_object_to_frame_info()

frame_info_ptr frame_object_to_frame_info ( PyObject *  obj)

◆ frapy_arch()

static PyObject * frapy_arch ( PyObject *  self,
PyObject *  args 
)
static

◆ frapy_block()

static PyObject * frapy_block ( PyObject *  self,
PyObject *  args 
)
static

◆ frapy_find_sal()

static PyObject * frapy_find_sal ( PyObject *  self,
PyObject *  args 
)
static

◆ frapy_function()

static PyObject * frapy_function ( PyObject *  self,
PyObject *  args 
)
static

◆ frapy_is_valid()

static PyObject * frapy_is_valid ( PyObject *  self,
PyObject *  args 
)
static

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

References frame_object_to_frame_info(), and GDB_PY_HANDLE_EXCEPTION.

◆ frapy_language()

static PyObject * frapy_language ( PyObject *  self,
PyObject *  args 
)
static

◆ frapy_level()

static PyObject * frapy_level ( PyObject *  self,
PyObject *  args 
)
static

◆ frapy_name()

static PyObject * frapy_name ( PyObject *  self,
PyObject *  args 
)
static

◆ frapy_newer()

static PyObject * frapy_newer ( PyObject *  self,
PyObject *  args 
)
static

◆ frapy_older()

static PyObject * frapy_older ( PyObject *  self,
PyObject *  args 
)
static

◆ frapy_pc()

static PyObject * frapy_pc ( PyObject *  self,
PyObject *  args 
)
static

◆ frapy_read_register()

static PyObject * frapy_read_register ( PyObject *  self,
PyObject *  args 
)
static

◆ frapy_read_var()

static PyObject * frapy_read_var ( PyObject *  self,
PyObject *  args 
)
static

◆ frapy_richcompare()

static PyObject * frapy_richcompare ( PyObject *  self,
PyObject *  other,
int  op 
)
static

◆ frapy_select()

static PyObject * frapy_select ( PyObject *  self,
PyObject *  args 
)
static

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

References FRAPY_REQUIRE_VALID, GDB_PY_HANDLE_EXCEPTION, and select_frame().

◆ frapy_str()

static PyObject * frapy_str ( PyObject *  self)
static

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

References frame_id::to_string().

◆ frapy_type()

static PyObject * frapy_type ( PyObject *  self,
PyObject *  args 
)
static

◆ frapy_unwind_stop_reason()

static PyObject * frapy_unwind_stop_reason ( PyObject *  self,
PyObject *  args 
)
static

◆ gdbpy_frame_stop_reason_string()

PyObject * gdbpy_frame_stop_reason_string ( PyObject *  self,
PyObject *  args 
)

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

References host_charset(), and unwind_stop_reason_to_string().

◆ gdbpy_initialize_frames()

int gdbpy_initialize_frames ( void  )

◆ gdbpy_newest_frame()

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

◆ gdbpy_selected_frame()

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

Variable Documentation

◆ frame_object_methods

PyMethodDef frame_object_methods[]
static

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

◆ frame_object_type

PyTypeObject frame_object_type