GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
py-frame.c File Reference
#include "defs.h"
#include "language.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 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_read_register (PyObject *self, PyObject *args, PyObject *kw)
 
static PyObjectfrapy_block (PyObject *self, PyObject *args)
 
static PyObjectfrapy_function (PyObject *self, PyObject *args)
 
PyObjectframe_info_to_frame_object (frame_info_ptr 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, PyObject *kw)
 
static PyObjectfrapy_select (PyObject *self, PyObject *args)
 
static PyObjectfrapy_level (PyObject *self, PyObject *args)
 
static PyObjectfrapy_language (PyObject *self, PyObject *args)
 
static PyObjectfrapy_static_link (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)
 
static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION gdbpy_initialize_frames (void)
 
 GDBPY_INITIALIZE_FILE (gdbpy_initialize_frames)
 

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:62

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

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

◆ SET

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

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 92 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,
PyObject * kw )
static

◆ frapy_read_var()

static PyObject * frapy_read_var ( PyObject * self,
PyObject * args,
PyObject * kw )
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 563 of file py-frame.c.

References FRAPY_REQUIRE_VALID, GDB_PY_HANDLE_EXCEPTION, and select_frame().

◆ frapy_static_link()

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

◆ frapy_str()

static PyObject * frapy_str ( PyObject * self)
static

Definition at line 81 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 693 of file py-frame.c.

References host_charset(), and unwind_stop_reason_to_string().

◆ GDBPY_INITIALIZE_FILE()

GDBPY_INITIALIZE_FILE ( gdbpy_initialize_frames )

◆ gdbpy_initialize_frames()

static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION gdbpy_initialize_frames ( void )
static

◆ 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 780 of file py-frame.c.

◆ frame_object_type

PyTypeObject frame_object_type