GDB (xrefs)
Loading...
Searching...
No Matches
Functions | Variables
py-function.c File Reference
#include "defs.h"
#include "value.h"
#include "python-internal.h"
#include "charset.h"
#include "gdbcmd.h"
#include "cli/cli-decode.h"
#include "completer.h"
#include "expression.h"
#include "language.h"

Go to the source code of this file.

Functions

PyTypeObject fnpy_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("PyObject")
 
static gdbpy_ref convert_values_to_python (int argc, struct value **argv)
 
static struct valuefnpy_call (struct gdbarch *gdbarch, const struct language_defn *language, void *cookie, int argc, struct value **argv)
 
static int fnpy_init (PyObject *self, PyObject *args, PyObject *kwds)
 
static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION gdbpy_initialize_functions (void)
 
 GDBPY_INITIALIZE_FILE (gdbpy_initialize_functions)
 

Variables

PyTypeObject fnpy_object_type
 

Function Documentation

◆ convert_values_to_python()

static gdbpy_ref convert_values_to_python ( int argc,
struct value ** argv )
static

Definition at line 40 of file py-function.c.

References value_to_value_object().

Referenced by fnpy_call().

◆ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF()

PyTypeObject fnpy_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ( "PyObject" )
extern

◆ fnpy_call()

static struct value * fnpy_call ( struct gdbarch * gdbarch,
const struct language_defn * language,
void * cookie,
int argc,
struct value ** argv )
static

◆ fnpy_init()

static int fnpy_init ( PyObject * self,
PyObject * args,
PyObject * kwds )
static

◆ GDBPY_INITIALIZE_FILE()

GDBPY_INITIALIZE_FILE ( gdbpy_initialize_functions )

◆ gdbpy_initialize_functions()

static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION gdbpy_initialize_functions ( void )
static

Definition at line 138 of file py-function.c.

References fnpy_object_type, gdb_module, and gdb_pymodule_addobject().

Variable Documentation

◆ fnpy_object_type

PyTypeObject fnpy_object_type

Definition at line 152 of file py-function.c.

Referenced by gdbpy_initialize_functions().