GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Functions | Variables
py-finishbreakpoint.c File Reference
#include "defs.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 PyObject * bpfinishpy_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)
 
static void bpfinishpy_handle_stop (struct bpstat *bs, int print_frame)
 
static void bpfinishpy_handle_exit (struct inferior *inf)
 
int gdbpy_initialize_finishbreakpoints (void)
 

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 
)
static

◆ bpfinishpy_get_returnvalue()

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

Definition at line 67 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_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"  )

◆ gdbpy_initialize_finishbreakpoints()

int gdbpy_initialize_finishbreakpoints ( void  )

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 424 of file py-finishbreakpoint.c.

◆ finish_breakpoint_object_type

PyTypeObject finish_breakpoint_object_type

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

Referenced by gdbpy_initialize_finishbreakpoints().

◆ outofscope_func

const char outofscope_func[] = "out_of_scope"
static

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

Referenced by bpfinishpy_out_of_scope().