GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Functions | Variables
py-finishbreakpoint.c File Reference
#include "defs.h"
#include "top.h"
#include "python-internal.h"
#include "breakpoint.h"
#include "frame.h"
#include "gdbthread.h"
#include "arch-utils.h"
#include "language.h"
#include "observable.h"
#include "inferior.h"
#include "block.h"
#include "location.h"

Go to the source code of this file.

Classes

struct  finish_breakpoint_object
 

Functions

PyTypeObject finish_breakpoint_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("finish_breakpoint_object")
 
static PyObjectbpfinishpy_get_returnvalue (PyObject *self, void *closure)
 
static void bpfinishpy_dealloc (PyObject *self)
 
void bpfinishpy_pre_stop_hook (struct gdbpy_breakpoint_object *bp_obj)
 
void bpfinishpy_post_stop_hook (struct gdbpy_breakpoint_object *bp_obj)
 
static int bpfinishpy_init (PyObject *self, PyObject *args, PyObject *kwargs)
 
static void bpfinishpy_out_of_scope (struct finish_breakpoint_object *bpfinish_obj)
 
static void bpfinishpy_detect_out_scope_cb (struct breakpoint *b, struct breakpoint *bp_stopped, bool delete_bp)
 
void bpfinishpy_pre_delete_hook (struct gdbpy_breakpoint_object *bp_obj)
 
static void bpfinishpy_handle_stop (struct bpstat *bs, int print_frame)
 
static void bpfinishpy_handle_exit (struct inferior *inf)
 
static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION gdbpy_initialize_finishbreakpoints (void)
 
 GDBPY_INITIALIZE_FILE (gdbpy_initialize_finishbreakpoints)
 

Variables

static const char outofscope_func [] = "out_of_scope"
 
static gdb_PyGetSetDef finish_breakpoint_object_getset []
 
PyTypeObject finish_breakpoint_object_type
 

Function Documentation

◆ bpfinishpy_dealloc()

static void bpfinishpy_dealloc ( PyObject * self)
static

◆ bpfinishpy_detect_out_scope_cb()

static void bpfinishpy_detect_out_scope_cb ( struct breakpoint * b,
struct breakpoint * bp_stopped,
bool delete_bp )
static

◆ bpfinishpy_get_returnvalue()

static PyObject * bpfinishpy_get_returnvalue ( PyObject * self,
void * closure )
static

Definition at line 72 of file py-finishbreakpoint.c.

References finish_breakpoint_object::return_value.

◆ bpfinishpy_handle_exit()

static void bpfinishpy_handle_exit ( struct inferior * inf)
static

◆ bpfinishpy_handle_stop()

static void bpfinishpy_handle_stop ( struct bpstat * bs,
int print_frame )
static

◆ bpfinishpy_init()

static int bpfinishpy_init ( PyObject * self,
PyObject * args,
PyObject * kwargs )
static

◆ bpfinishpy_out_of_scope()

static void bpfinishpy_out_of_scope ( struct finish_breakpoint_object * bpfinish_obj)
static

◆ bpfinishpy_post_stop_hook()

void bpfinishpy_post_stop_hook ( struct gdbpy_breakpoint_object * bp_obj)

◆ bpfinishpy_pre_delete_hook()

void bpfinishpy_pre_delete_hook ( struct gdbpy_breakpoint_object * bp_obj)

◆ bpfinishpy_pre_stop_hook()

void bpfinishpy_pre_stop_hook ( struct gdbpy_breakpoint_object * bp_obj)

◆ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF()

PyTypeObject finish_breakpoint_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ( "finish_breakpoint_object" )
extern

◆ GDBPY_INITIALIZE_FILE()

GDBPY_INITIALIZE_FILE ( gdbpy_initialize_finishbreakpoints )

◆ gdbpy_initialize_finishbreakpoints()

static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION gdbpy_initialize_finishbreakpoints ( void )
static

Variable Documentation

◆ finish_breakpoint_object_getset

gdb_PyGetSetDef finish_breakpoint_object_getset[]
static
Initial value:
= {
{ "return_value", bpfinishpy_get_returnvalue, NULL,
"gdb.Value object representing the return value, if any. \
None otherwise.", NULL },
{ NULL }
}
static PyObject * bpfinishpy_get_returnvalue(PyObject *self, void *closure)

Definition at line 463 of file py-finishbreakpoint.c.

◆ finish_breakpoint_object_type

PyTypeObject finish_breakpoint_object_type

Definition at line 470 of file py-finishbreakpoint.c.

Referenced by gdbpy_initialize_finishbreakpoints().

◆ outofscope_func

const char outofscope_func[] = "out_of_scope"
static

Definition at line 36 of file py-finishbreakpoint.c.

Referenced by bpfinishpy_out_of_scope().