GDB (xrefs)
Classes | Macros | Typedefs | Enumerations | Functions | Variables
python-internal.h File Reference
#include "extension.h"
#include "extension-priv.h"
#include <Python.h>
#include <frameobject.h>
#include "symtab.h"
#include "command.h"
#include "breakpoint.h"

Go to the source code of this file.

Classes

struct  gdb_PyGetSetDef
 
struct  gdbpy_breakpoint_object
 
struct  thread_object
 
class  gdbpy_enter
 
class  gdbpy_enter_varobj
 

Macros

#define CPYCHECKER_RETURNS_BORROWED_REF
 
#define CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF(ARG)
 
#define CPYCHECKER_STEALS_REFERENCE_TO_ARG(n)
 
#define CPYCHECKER_SETS_EXCEPTION
 
#define CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
#define PY_SSIZE_T_CLEAN
 
#define PyVarObject_HEAD_INIT(type, size)   PyObject_HEAD_INIT(type) size,
 
#define Py_TYPE(ob)   (((PyObject*)(ob))->ob_type)
 
#define PyGILState_Ensure()   ((PyGILState_STATE) 0)
 
#define PyGILState_Release(ARG)   ((void)(ARG))
 
#define PyEval_InitThreads()
 
#define PyThreadState_Swap(ARG)   ((void)(ARG))
 
#define PyEval_ReleaseLock()
 
#define GDB_PY_LL_ARG   "L"
 
#define GDB_PY_LLU_ARG   "K"
 
#define gdb_py_long_from_longest   PyLong_FromLong
 
#define gdb_py_long_from_ulongest   PyLong_FromUnsignedLong
 
#define gdb_py_long_as_ulongest   PyLong_AsUnsignedLong
 
#define PyMem_RawMalloc   PyMem_Malloc
 
#define Py_DECREF(op)   gdb_Py_DECREF (op)
 
#define PyObject_GetAttrString(obj, attr)   gdb_PyObject_GetAttrString (obj, attr)
 
#define PyObject_HasAttrString(obj, attr)   gdb_PyObject_HasAttrString (obj, attr)
 
#define PyObject_CallMethod   gdb_PyObject_CallMethod
 
#define PyErr_NewException   gdb_PyErr_NewException
 
#define PySys_GetObject   gdb_PySys_GetObject
 
#define GDB_PYSYS_SETPATH_CHAR   char
 
#define PySys_SetPath   gdb_PySys_SetPath
 
#define BPPY_REQUIRE_VALID(Breakpoint)
 
#define BPPY_SET_REQUIRE_VALID(Breakpoint)
 
#define GDB_PY_HANDLE_EXCEPTION(Exception)
 
#define GDB_PY_SET_HANDLE_EXCEPTION(Exception)
 

Typedefs

typedef long gdb_py_longest
 
typedef unsigned long gdb_py_ulongest
 
typedef long Py_hash_t
 
typedef struct gdbpy_breakpoint_object gdbpy_breakpoint_object
 

Enumerations

enum  gdbpy_iter_kind { iter_keys, iter_values, iter_items }
 

Functions

static void gdb_Py_DECREF (void *op)
 
static PyObject * gdb_PyObject_GetAttrString (PyObject *obj, const char *attr)
 
static int gdb_PyObject_HasAttrString (PyObject *obj, const char *attr)
 
template<typename... Args>
static PyObject * gdb_PyObject_CallMethod (PyObject *o, const char *method, const char *format, Args... args)
 
static PyObject * gdb_PyErr_NewException (const char *name, PyObject *base, PyObject *dict)
 
static PyObject * gdb_PySys_GetObject (const char *name)
 
static void gdb_PySys_SetPath (const GDB_PYSYS_SETPATH_CHAR *path)
 
static int gdb_PyArg_ParseTupleAndKeywords (PyObject *args, PyObject *kw, const char *format, const char **keywords,...)
 
PyTypeObject value_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("value_object")
 
PyTypeObject block_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("block_object")
 
PyTypeObject symbol_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("symbol_object")
 
PyTypeObject event_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("event_object")
 
PyTypeObject breakpoint_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("breakpoint_object")
 
PyTypeObject frame_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("frame_object")
 
PyTypeObject thread_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("thread_object")
 
int gdbpy_auto_load_enabled (const struct extension_language_defn *)
 
enum ext_lang_rc gdbpy_apply_val_pretty_printer (const struct extension_language_defn *, struct type *type, LONGEST embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, struct value *val, const struct value_print_options *options, const struct language_defn *language)
 
enum ext_lang_bt_status gdbpy_apply_frame_filter (const struct extension_language_defn *, struct frame_info *frame, int flags, enum ext_lang_frame_args args_type, struct ui_out *out, int frame_low, int frame_high)
 
void gdbpy_preserve_values (const struct extension_language_defn *, struct objfile *objfile, htab_t copied_types)
 
enum ext_lang_bp_stop gdbpy_breakpoint_cond_says_stop (const struct extension_language_defn *, struct breakpoint *)
 
int gdbpy_breakpoint_has_cond (const struct extension_language_defn *, struct breakpoint *b)
 
void * gdbpy_clone_xmethod_worker_data (const struct extension_language_defn *extlang, void *data)
 
void gdbpy_free_xmethod_worker_data (const struct extension_language_defn *extlang, void *data)
 
enum ext_lang_rc gdbpy_get_matching_xmethod_workers (const struct extension_language_defn *extlang, struct type *obj_type, const char *method_name, xmethod_worker_vec **dm_vec)
 
enum ext_lang_rc gdbpy_get_xmethod_arg_types (const struct extension_language_defn *extlang, struct xmethod_worker *worker, int *nargs, struct type ***arg_types)
 
enum ext_lang_rc gdbpy_get_xmethod_result_type (const struct extension_language_defn *extlang, struct xmethod_worker *worker, struct value *object, struct value **args, int nargs, struct type **result_type)
 
struct valuegdbpy_invoke_xmethod (const struct extension_language_defn *extlang, struct xmethod_worker *worker, struct value *obj, struct value **args, int nargs)
 
PyObject * gdbpy_history (PyObject *self, PyObject *args)
 
PyObject * gdbpy_breakpoints (PyObject *, PyObject *)
 
PyObject * gdbpy_frame_stop_reason_string (PyObject *, PyObject *)
 
PyObject * gdbpy_lookup_symbol (PyObject *self, PyObject *args, PyObject *kw)
 
PyObject * gdbpy_lookup_global_symbol (PyObject *self, PyObject *args, PyObject *kw)
 
PyObject * gdbpy_start_recording (PyObject *self, PyObject *args)
 
PyObject * gdbpy_current_recording (PyObject *self, PyObject *args)
 
PyObject * gdbpy_stop_recording (PyObject *self, PyObject *args)
 
PyObject * gdbpy_newest_frame (PyObject *self, PyObject *args)
 
PyObject * gdbpy_selected_frame (PyObject *self, PyObject *args)
 
PyObject * gdbpy_block_for_pc (PyObject *self, PyObject *args)
 
PyObject * gdbpy_lookup_type (PyObject *self, PyObject *args, PyObject *kw)
 
int gdbpy_is_field (PyObject *obj)
 
PyObject * gdbpy_create_lazy_string_object (CORE_ADDR address, long length, const char *encoding, struct type *type)
 
PyObject * gdbpy_inferiors (PyObject *unused, PyObject *unused2)
 
PyObject * gdbpy_create_ptid_object (ptid_t ptid)
 
PyObject * gdbpy_selected_thread (PyObject *self, PyObject *args)
 
PyObject * gdbpy_selected_inferior (PyObject *self, PyObject *args)
 
PyObject * gdbpy_string_to_argv (PyObject *self, PyObject *args)
 
PyObject * gdbpy_parameter_value (enum var_types type, void *var)
 
char * gdbpy_parse_command_name (const char *name, struct cmd_list_element ***base_list, struct cmd_list_element **start_list)
 
PyObject * symtab_and_line_to_sal_object (struct symtab_and_line sal)
 
PyObject * symtab_to_symtab_object (struct symtab *symtab)
 
PyObject * symbol_to_symbol_object (struct symbol *sym)
 
PyObject * block_to_block_object (const struct block *block, struct objfile *objfile)
 
PyObject * value_to_value_object (struct value *v)
 
PyObject * type_to_type_object (struct type *)
 
PyObject * frame_info_to_frame_object (struct frame_info *frame)
 
PyObject * symtab_to_linetable_object (PyObject *symtab)
 
PyObject * pspace_to_pspace_object (struct program_space *) CPYCHECKER_RETURNS_BORROWED_REF
 
PyObject * pspy_get_printers (PyObject *, void *)
 
PyObject * pspy_get_frame_filters (PyObject *, void *)
 
PyObject * pspy_get_frame_unwinders (PyObject *, void *)
 
PyObject * pspy_get_xmethods (PyObject *, void *)
 
PyObject * objfile_to_objfile_object (struct objfile *) CPYCHECKER_RETURNS_BORROWED_REF
 
PyObject * objfpy_get_printers (PyObject *, void *)
 
PyObject * objfpy_get_frame_filters (PyObject *, void *)
 
PyObject * objfpy_get_frame_unwinders (PyObject *, void *)
 
PyObject * objfpy_get_xmethods (PyObject *, void *)
 
PyObject * gdbpy_lookup_objfile (PyObject *self, PyObject *args, PyObject *kw)
 
PyObject * gdbarch_to_arch_object (struct gdbarch *gdbarch)
 
thread_objectcreate_thread_object (struct thread_info *tp)
 
thread_objectfind_thread_object (ptid_t ptid) CPYCHECKER_RETURNS_BORROWED_REF
 
PyObject * find_inferior_object (int pid)
 
PyObject * inferior_to_inferior_object (struct inferior *inferior)
 
const struct blockblock_object_to_block (PyObject *obj)
 
struct symbolsymbol_object_to_symbol (PyObject *obj)
 
struct valuevalue_object_to_value (PyObject *self)
 
struct valueconvert_value_from_python (PyObject *obj)
 
struct typetype_object_to_type (PyObject *obj)
 
struct symtabsymtab_object_to_symtab (PyObject *obj)
 
struct symtab_and_linesal_object_to_symtab_and_line (PyObject *obj)
 
struct frame_infoframe_object_to_frame_info (PyObject *frame_obj)
 
struct gdbarcharch_object_to_gdbarch (PyObject *obj)
 
void gdbpy_initialize_gdb_readline (void)
 
int gdbpy_initialize_auto_load (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_values (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_frames (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_instruction (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_btrace (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_record (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_symtabs (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_commands (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_symbols (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_blocks (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_types (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_functions (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_pspace (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_objfile (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_breakpoints (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_finishbreakpoints (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_lazy_string (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_linetable (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_parameters (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_thread (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_inferior (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_eventregistry (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_event (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_py_events (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_arch (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_xmethods (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_initialize_unwind (void) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
int gdbpy_print_python_errors_p (void)
 
void gdbpy_print_stack (void)
 
PyObject * python_string_to_unicode (PyObject *obj)
 
gdb::unique_xmalloc_ptr< char > unicode_to_target_string (PyObject *unicode_str)
 
gdb::unique_xmalloc_ptr< char > python_string_to_target_string (PyObject *obj)
 
PyObject * python_string_to_target_python_string (PyObject *obj)
 
gdb::unique_xmalloc_ptr< char > python_string_to_host_string (PyObject *obj)
 
PyObject * host_string_to_python_string (const char *str)
 
int gdbpy_is_string (PyObject *obj)
 
gdb::unique_xmalloc_ptr< char > gdbpy_obj_to_string (PyObject *obj)
 
gdb::unique_xmalloc_ptr< char > gdbpy_exception_to_string (PyObject *ptype, PyObject *pvalue)
 
int gdbpy_is_lazy_string (PyObject *result)
 
void gdbpy_extract_lazy_string (PyObject *string, CORE_ADDR *addr, struct type **str_type, long *length, gdb::unique_xmalloc_ptr< char > *encoding)
 
int gdbpy_is_value_object (PyObject *obj)
 
PyObject * apply_varobj_pretty_printer (PyObject *print_obj, struct value **replacement, struct ui_file *stream)
 
PyObject * gdbpy_get_varobj_pretty_printer (struct value *value)
 
gdb::unique_xmalloc_ptr< char > gdbpy_get_display_hint (PyObject *printer)
 
PyObject * gdbpy_default_visualizer (PyObject *self, PyObject *args)
 
void bpfinishpy_pre_stop_hook (struct gdbpy_breakpoint_object *bp_obj)
 
void bpfinishpy_post_stop_hook (struct gdbpy_breakpoint_object *bp_obj)
 
void gdbpy_convert_exception (struct gdb_exception) CPYCHECKER_SETS_EXCEPTION
 
int get_addr_from_python (PyObject *obj, CORE_ADDR *addr) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
PyObject * gdb_py_object_from_longest (LONGEST l)
 
PyObject * gdb_py_object_from_ulongest (ULONGEST l)
 
int gdb_py_int_as_long (PyObject *, long *)
 
PyObject * gdb_py_generic_dict (PyObject *self, void *closure)
 
int gdb_pymodule_addobject (PyObject *module, const char *name, PyObject *object) CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 
struct varobj_iterpy_varobj_get_iterator (struct varobj *var, PyObject *printer)
 

Variables

int gdb_python_initialized
 
PyObject * gdb_module
 
PyObject * gdb_python_module
 
gdbpy_breakpoint_objectbppy_pending_object
 
struct cmd_list_elementset_python_list
 
struct cmd_list_elementshow_python_list
 
struct gdbarchpython_gdbarch
 
const struct language_defnpython_language
 
PyObject * gdbpy_doc_cst
 
PyObject * gdbpy_children_cst
 
PyObject * gdbpy_to_string_cst
 
PyObject * gdbpy_display_hint_cst
 
PyObject * gdbpy_enabled_cst
 
PyObject * gdbpy_value_cst
 
PyObject * gdbpy_gdb_error
 
PyObject * gdbpy_gdb_memory_error
 
PyObject * gdbpy_gdberror_exc
 

Macro Definition Documentation

◆ BPPY_REQUIRE_VALID

#define BPPY_REQUIRE_VALID (   Breakpoint)
Value:
do { \
if ((Breakpoint)->bp == NULL) \
return PyErr_Format (PyExc_RuntimeError, \
_("Breakpoint %d is invalid."), \
(Breakpoint)->number); \
} while (0)
#define _(String)
Definition: gdb_locale.h:35

Definition at line 406 of file python-internal.h.

Referenced by bppy_delete_breakpoint(), bppy_get_commands(), bppy_get_condition(), bppy_get_enabled(), bppy_get_expression(), bppy_get_hit_count(), bppy_get_ignore_count(), bppy_get_location(), bppy_get_number(), bppy_get_pending(), bppy_get_silent(), bppy_get_task(), bppy_get_temporary(), bppy_get_thread(), bppy_get_type(), and bppy_get_visibility().

◆ BPPY_SET_REQUIRE_VALID

#define BPPY_SET_REQUIRE_VALID (   Breakpoint)
Value:
do { \
if ((Breakpoint)->bp == NULL) \
{ \
PyErr_Format (PyExc_RuntimeError, _("Breakpoint %d is invalid."), \
(Breakpoint)->number); \
return -1; \
} \
} while (0)
#define _(String)
Definition: gdb_locale.h:35

Definition at line 416 of file python-internal.h.

Referenced by bppy_init(), bppy_set_condition(), bppy_set_enabled(), bppy_set_hit_count(), bppy_set_ignore_count(), bppy_set_silent(), bppy_set_task(), and bppy_set_thread().

◆ CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION

#define CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION

Definition at line 63 of file python-internal.h.

◆ CPYCHECKER_RETURNS_BORROWED_REF

#define CPYCHECKER_RETURNS_BORROWED_REF

Definition at line 36 of file python-internal.h.

◆ CPYCHECKER_SETS_EXCEPTION

#define CPYCHECKER_SETS_EXCEPTION

Definition at line 56 of file python-internal.h.

◆ CPYCHECKER_STEALS_REFERENCE_TO_ARG

#define CPYCHECKER_STEALS_REFERENCE_TO_ARG (   n)

Definition at line 50 of file python-internal.h.

◆ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF

#define CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF (   ARG)

Definition at line 43 of file python-internal.h.

◆ GDB_PY_HANDLE_EXCEPTION

#define GDB_PY_HANDLE_EXCEPTION (   Exception)
Value:
do { \
if (Exception.reason < 0) \
{ \
gdbpy_convert_exception (Exception); \
return NULL; \
} \
} while (0)

Definition at line 663 of file python-internal.h.

Referenced by bppy_delete_breakpoint(), execute_gdb_command(), frapy_arch(), frapy_block(), frapy_find_sal(), frapy_function(), frapy_is_valid(), frapy_name(), frapy_newer(), frapy_older(), frapy_pc(), frapy_read_register(), frapy_read_var(), frapy_select(), frapy_type(), frapy_unwind_stop_reason(), gdbpy_block_for_pc(), gdbpy_find_pc_line(), gdbpy_get_varobj_pretty_printer(), gdbpy_history(), gdbpy_lookup_global_symbol(), gdbpy_lookup_symbol(), gdbpy_newest_frame(), gdbpy_parameter(), gdbpy_parse_and_eval(), gdbpy_selected_frame(), gdbpy_write(), infpy_read_memory(), infpy_search_memory(), infpy_thread_from_thread_handle(), infpy_threads(), infpy_write_memory(), ltpy_get_pcs_for_line(), objfpy_add_separate_debug_file(), objfpy_get_build_id(), pending_framepy_read_register(), pending_framepy_str(), recpy_bt_goto(), recpy_bt_insn_data(), recpy_bt_insn_sal(), stpy_convert_to_value(), sympy_needs_frame(), sympy_value(), thpy_switch(), typy_array_1(), typy_const(), typy_fields_items(), typy_get_composite(), typy_legacy_template_argument(), typy_lookup_type(), typy_lookup_typename(), typy_pointer(), typy_reference(), typy_richcompare(), typy_str(), typy_strip_typedefs(), typy_template_argument(), typy_unqualified(), typy_volatile(), unwind_infopy_str(), valpy_absolute(), valpy_binop(), valpy_call(), valpy_const_value(), valpy_dereference(), valpy_do_cast(), valpy_fetch_lazy(), valpy_float(), valpy_get_dynamic_type(), valpy_get_is_lazy(), valpy_get_is_optimized_out(), valpy_getitem(), valpy_int(), valpy_invert(), valpy_lazy_string(), valpy_long(), valpy_negative(), valpy_reference_value(), valpy_referenced_value(), valpy_richcompare(), valpy_str(), and valpy_string().

◆ GDB_PY_LL_ARG

#define GDB_PY_LL_ARG   "L"

Definition at line 169 of file python-internal.h.

Referenced by ltpy_get_pcs_for_line(), ltpy_has_line(), and valpy_lazy_string().

◆ GDB_PY_LLU_ARG

#define GDB_PY_LLU_ARG   "K"

◆ gdb_py_long_as_ulongest

#define gdb_py_long_as_ulongest   PyLong_AsUnsignedLong

Definition at line 175 of file python-internal.h.

Referenced by get_addr_from_python().

◆ gdb_py_long_from_longest

#define gdb_py_long_from_longest   PyLong_FromLong

Definition at line 173 of file python-internal.h.

Referenced by btpy_list_index(), convert_field(), typy_get_sizeof(), and valpy_long().

◆ gdb_py_long_from_ulongest

#define gdb_py_long_from_ulongest   PyLong_FromUnsignedLong

◆ GDB_PY_SET_HANDLE_EXCEPTION

#define GDB_PY_SET_HANDLE_EXCEPTION (   Exception)
Value:
do { \
if (Exception.reason < 0) \
{ \
gdbpy_convert_exception (Exception); \
return -1; \
} \
} while (0)

Definition at line 674 of file python-internal.h.

Referenced by bpfinishpy_init(), bppy_set_condition(), bppy_set_enabled(), bppy_set_ignore_count(), bppy_set_task(), get_addr_from_python(), valpy_nonzero(), and value_has_field().

◆ GDB_PYSYS_SETPATH_CHAR

#define GDB_PYSYS_SETPATH_CHAR   char

Definition at line 284 of file python-internal.h.

◆ Py_DECREF

#define Py_DECREF (   op)    gdb_Py_DECREF (op)

◆ PY_SSIZE_T_CLEAN

#define PY_SSIZE_T_CLEAN

Definition at line 95 of file python-internal.h.

◆ Py_TYPE

#define Py_TYPE (   ob)    (((PyObject*)(ob))->ob_type)

◆ PyErr_NewException

#define PyErr_NewException   gdb_PyErr_NewException

Definition at line 263 of file python-internal.h.

Referenced by do_start_initialization(), and gdb_PyErr_NewException().

◆ PyEval_InitThreads

#define PyEval_InitThreads ( )

Definition at line 149 of file python-internal.h.

Referenced by do_start_initialization().

◆ PyEval_ReleaseLock

#define PyEval_ReleaseLock ( )

Definition at line 151 of file python-internal.h.

Referenced by do_start_initialization().

◆ PyGILState_Ensure

#define PyGILState_Ensure ( )    ((PyGILState_STATE) 0)

◆ PyGILState_Release

#define PyGILState_Release (   ARG)    ((void)(ARG))

◆ PyMem_RawMalloc

#define PyMem_RawMalloc   PyMem_Malloc

Definition at line 187 of file python-internal.h.

Referenced by gdbpy_readline_wrapper().

◆ PyObject_CallMethod

#define PyObject_CallMethod   gdb_PyObject_CallMethod

◆ PyObject_GetAttrString

#define PyObject_GetAttrString (   obj,
  attr 
)    gdb_PyObject_GetAttrString (obj, attr)

◆ PyObject_HasAttrString

#define PyObject_HasAttrString (   obj,
  attr 
)    gdb_PyObject_HasAttrString (obj, attr)

◆ PySys_GetObject

#define PySys_GetObject   gdb_PySys_GetObject

Definition at line 275 of file python-internal.h.

Referenced by do_finish_initialization(), and gdb_PySys_GetObject().

◆ PySys_SetPath

#define PySys_SetPath   gdb_PySys_SetPath

Definition at line 293 of file python-internal.h.

Referenced by do_finish_initialization(), and gdb_PySys_SetPath().

◆ PyThreadState_Swap

#define PyThreadState_Swap (   ARG)    ((void)(ARG))

Definition at line 150 of file python-internal.h.

Referenced by do_start_initialization().

◆ PyVarObject_HEAD_INIT

#define PyVarObject_HEAD_INIT (   type,
  size 
)    PyObject_HEAD_INIT(type) size,

Definition at line 133 of file python-internal.h.

Typedef Documentation

◆ gdb_py_longest

typedef long gdb_py_longest

Definition at line 171 of file python-internal.h.

◆ gdb_py_ulongest

typedef unsigned long gdb_py_ulongest

Definition at line 172 of file python-internal.h.

◆ gdbpy_breakpoint_object

◆ Py_hash_t

typedef long Py_hash_t

Definition at line 180 of file python-internal.h.

Enumeration Type Documentation

◆ gdbpy_iter_kind

Enumerator
iter_keys 
iter_values 
iter_items 

Definition at line 361 of file python-internal.h.

Function Documentation

◆ apply_varobj_pretty_printer()

PyObject* apply_varobj_pretty_printer ( PyObject *  print_obj,
struct value **  replacement,
struct ui_file stream 
)

◆ arch_object_to_gdbarch()

struct gdbarch* arch_object_to_gdbarch ( PyObject *  obj)

Definition at line 69 of file py-arch.c.

References arch_object_type_object::gdbarch.

◆ block_object_to_block()

const struct block* block_object_to_block ( PyObject *  obj)

◆ block_to_block_object()

PyObject* block_to_block_object ( const struct block block,
struct objfile objfile 
)

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

◆ convert_value_from_python()

struct value* convert_value_from_python ( PyObject *  obj)

◆ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF() [1/7]

PyTypeObject value_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ( "value_object"  )

◆ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF() [2/7]

PyTypeObject block_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ( "block_object"  )

◆ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF() [3/7]

PyTypeObject symbol_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ( "symbol_object"  )

◆ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF() [4/7]

PyTypeObject event_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ( "event_object"  )

◆ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF() [5/7]

PyTypeObject breakpoint_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ( "breakpoint_object"  )

◆ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF() [6/7]

PyTypeObject frame_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ( "frame_object"  )

◆ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF() [7/7]

PyTypeObject thread_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ( "thread_object"  )

◆ create_thread_object()

thread_object* create_thread_object ( struct thread_info tp)

◆ find_inferior_object()

PyObject* find_inferior_object ( int  pid)

◆ find_thread_object()

thread_object* find_thread_object ( ptid_t  ptid)

◆ frame_info_to_frame_object()

PyObject* frame_info_to_frame_object ( struct frame_info frame)

◆ frame_object_to_frame_info()

struct frame_info* frame_object_to_frame_info ( PyObject *  frame_obj)

◆ gdb_Py_DECREF()

static void gdb_Py_DECREF ( void *  op)
inlinestatic

Definition at line 195 of file python-internal.h.

References Py_DECREF.

◆ gdb_py_generic_dict()

PyObject* gdb_py_generic_dict ( PyObject *  self,
void *  closure 
)

Definition at line 359 of file py-utils.c.

◆ gdb_py_int_as_long()

int gdb_py_int_as_long ( PyObject *  ,
long *   
)

◆ gdb_py_object_from_longest()

PyObject* gdb_py_object_from_longest ( LONGEST  l)

◆ gdb_py_object_from_ulongest()

PyObject* gdb_py_object_from_ulongest ( ULONGEST  l)

Definition at line 321 of file py-utils.c.

Referenced by blpy_get_end(), and blpy_get_start().

◆ gdb_PyArg_ParseTupleAndKeywords()

static int gdb_PyArg_ParseTupleAndKeywords ( PyObject *  args,
PyObject *  kw,
const char *  format,
const char **  keywords,
  ... 
)
inlinestatic

◆ gdb_PyErr_NewException()

static PyObject* gdb_PyErr_NewException ( const char *  name,
PyObject *  base,
PyObject *  dict 
)
inlinestatic

Definition at line 258 of file python-internal.h.

References name, and PyErr_NewException.

◆ gdb_pymodule_addobject()

int gdb_pymodule_addobject ( PyObject *  module,
const char *  name,
PyObject *  object 
)

◆ gdb_PyObject_CallMethod()

template<typename... Args>
static PyObject* gdb_PyObject_CallMethod ( PyObject *  o,
const char *  method,
const char *  format,
Args...  args 
)
inlinestatic

Definition at line 241 of file python-internal.h.

References PyObject_CallMethod.

◆ gdb_PyObject_GetAttrString()

static PyObject* gdb_PyObject_GetAttrString ( PyObject *  obj,
const char *  attr 
)
inlinestatic

Definition at line 211 of file python-internal.h.

References PyObject_GetAttrString.

◆ gdb_PyObject_HasAttrString()

static int gdb_PyObject_HasAttrString ( PyObject *  obj,
const char *  attr 
)
inlinestatic

Definition at line 224 of file python-internal.h.

References PyObject_HasAttrString.

◆ gdb_PySys_GetObject()

static PyObject* gdb_PySys_GetObject ( const char *  name)
inlinestatic

Definition at line 270 of file python-internal.h.

References name, and PySys_GetObject.

◆ gdb_PySys_SetPath()

static void gdb_PySys_SetPath ( const GDB_PYSYS_SETPATH_CHAR path)
inlinestatic

Definition at line 288 of file python-internal.h.

References PySys_SetPath.

◆ gdbarch_to_arch_object()

PyObject* gdbarch_to_arch_object ( struct gdbarch gdbarch)

Definition at line 81 of file py-arch.c.

References arch_object_data.

Referenced by frapy_arch().

◆ gdbpy_apply_frame_filter()

enum ext_lang_bt_status gdbpy_apply_frame_filter ( const struct extension_language_defn ,
struct frame_info frame,
int  flags,
enum ext_lang_frame_args  args_type,
struct ui_out out,
int  frame_low,
int  frame_high 
)

◆ gdbpy_apply_val_pretty_printer()

enum ext_lang_rc gdbpy_apply_val_pretty_printer ( const struct extension_language_defn ,
struct type type,
LONGEST  embedded_offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
struct value val,
const struct value_print_options options,
const struct language_defn language 
)

◆ gdbpy_auto_load_enabled()

int gdbpy_auto_load_enabled ( const struct extension_language_defn )

Definition at line 47 of file py-auto-load.c.

References auto_load_python_scripts.

◆ gdbpy_block_for_pc()

PyObject* gdbpy_block_for_pc ( PyObject *  self,
PyObject *  args 
)

◆ gdbpy_breakpoint_cond_says_stop()

enum ext_lang_bp_stop gdbpy_breakpoint_cond_says_stop ( const struct extension_language_defn ,
struct breakpoint  
)

◆ gdbpy_breakpoint_has_cond()

int gdbpy_breakpoint_has_cond ( const struct extension_language_defn ,
struct breakpoint b 
)

◆ gdbpy_breakpoints()

PyObject* gdbpy_breakpoints ( PyObject *  ,
PyObject *   
)

◆ gdbpy_clone_xmethod_worker_data()

void* gdbpy_clone_xmethod_worker_data ( const struct extension_language_defn extlang,
void *  data 
)

◆ gdbpy_convert_exception()

void gdbpy_convert_exception ( struct gdb_exception  )

◆ gdbpy_create_lazy_string_object()

PyObject* gdbpy_create_lazy_string_object ( CORE_ADDR  address,
long  length,
const char *  encoding,
struct type type 
)

◆ gdbpy_create_ptid_object()

PyObject* gdbpy_create_ptid_object ( ptid_t  ptid)

◆ gdbpy_current_recording()

PyObject* gdbpy_current_recording ( PyObject *  self,
PyObject *  args 
)

◆ gdbpy_default_visualizer()

PyObject* gdbpy_default_visualizer ( PyObject *  self,
PyObject *  args 
)

Definition at line 767 of file py-prettyprint.c.

References _, find_pretty_printer(), and value_object_to_value().

◆ gdbpy_exception_to_string()

gdb::unique_xmalloc_ptr<char> gdbpy_exception_to_string ( PyObject *  ptype,
PyObject *  pvalue 
)

◆ gdbpy_extract_lazy_string()

void gdbpy_extract_lazy_string ( PyObject *  string,
CORE_ADDR addr,
struct type **  str_type,
long *  length,
gdb::unique_xmalloc_ptr< char > *  encoding 
)

◆ gdbpy_frame_stop_reason_string()

PyObject* gdbpy_frame_stop_reason_string ( PyObject *  ,
PyObject *   
)

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

References _, host_charset(), and unwind_stop_reason_to_string().

◆ gdbpy_free_xmethod_worker_data()

void gdbpy_free_xmethod_worker_data ( const struct extension_language_defn extlang,
void *  data 
)

◆ gdbpy_get_display_hint()

gdb::unique_xmalloc_ptr<char> gdbpy_get_display_hint ( PyObject *  printer)

◆ gdbpy_get_matching_xmethod_workers()

enum ext_lang_rc gdbpy_get_matching_xmethod_workers ( const struct extension_language_defn extlang,
struct type obj_type,
const char *  method_name,
xmethod_worker_vec **  dm_vec 
)

◆ gdbpy_get_varobj_pretty_printer()

PyObject* gdbpy_get_varobj_pretty_printer ( struct value value)

◆ gdbpy_get_xmethod_arg_types()

enum ext_lang_rc gdbpy_get_xmethod_arg_types ( const struct extension_language_defn extlang,
struct xmethod_worker worker,
int *  nargs,
struct type ***  arg_types 
)

◆ gdbpy_get_xmethod_result_type()

enum ext_lang_rc gdbpy_get_xmethod_result_type ( const struct extension_language_defn extlang,
struct xmethod_worker worker,
struct value object,
struct value **  args,
int  nargs,
struct type **  result_type 
)

◆ gdbpy_history()

PyObject* gdbpy_history ( PyObject *  self,
PyObject *  args 
)

◆ gdbpy_inferiors()

PyObject* gdbpy_inferiors ( PyObject *  unused,
PyObject *  unused2 
)

◆ gdbpy_initialize_arch()

int gdbpy_initialize_arch ( void  )

◆ gdbpy_initialize_auto_load()

int gdbpy_initialize_auto_load ( void  )

◆ gdbpy_initialize_blocks()

int gdbpy_initialize_blocks ( void  )

◆ gdbpy_initialize_breakpoints()

int gdbpy_initialize_breakpoints ( void  )

◆ gdbpy_initialize_btrace()

int gdbpy_initialize_btrace ( void  )

◆ gdbpy_initialize_commands()

int gdbpy_initialize_commands ( void  )

◆ gdbpy_initialize_event()

int gdbpy_initialize_event ( void  )

Definition at line 58 of file py-event.c.

References event_object_type, and gdbpy_initialize_event_generic().

Referenced by do_start_initialization().

◆ gdbpy_initialize_eventregistry()

int gdbpy_initialize_eventregistry ( void  )

◆ gdbpy_initialize_finishbreakpoints()

int gdbpy_initialize_finishbreakpoints ( void  )

◆ gdbpy_initialize_frames()

int gdbpy_initialize_frames ( void  )

◆ gdbpy_initialize_functions()

int gdbpy_initialize_functions ( void  )

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

References fnpy_object_type, gdb_module, and gdb_pymodule_addobject().

Referenced by do_start_initialization().

◆ gdbpy_initialize_gdb_readline()

void gdbpy_initialize_gdb_readline ( void  )

Definition at line 89 of file py-gdb-readline.c.

References gdbpy_readline_wrapper().

Referenced by do_start_initialization().

◆ gdbpy_initialize_inferior()

int gdbpy_initialize_inferior ( void  )

◆ gdbpy_initialize_instruction()

int gdbpy_initialize_instruction ( void  )

Definition at line 57 of file py-instruction.c.

References py_insn_getset, and py_insn_type.

Referenced by do_start_initialization().

◆ gdbpy_initialize_lazy_string()

int gdbpy_initialize_lazy_string ( void  )

Definition at line 233 of file py-lazy-string.c.

References lazy_string_object_type.

Referenced by do_start_initialization().

◆ gdbpy_initialize_linetable()

int gdbpy_initialize_linetable ( void  )

◆ gdbpy_initialize_objfile()

int gdbpy_initialize_objfile ( void  )

◆ gdbpy_initialize_parameters()

int gdbpy_initialize_parameters ( void  )

◆ gdbpy_initialize_pspace()

int gdbpy_initialize_pspace ( void  )

◆ gdbpy_initialize_py_events()

int gdbpy_initialize_py_events ( void  )

Definition at line 54 of file py-evts.c.

References gdb_module, gdb_py_events, gdb_pymodule_addobject(), and events_object::module.

Referenced by do_start_initialization().

◆ gdbpy_initialize_record()

int gdbpy_initialize_record ( void  )

◆ gdbpy_initialize_symbols()

int gdbpy_initialize_symbols ( void  )

◆ gdbpy_initialize_symtabs()

int gdbpy_initialize_symtabs ( void  )

◆ gdbpy_initialize_thread()

int gdbpy_initialize_thread ( void  )

Definition at line 299 of file py-infthread.c.

References gdb_module, gdb_pymodule_addobject(), and thread_object_type.

Referenced by do_start_initialization().

◆ gdbpy_initialize_types()

int gdbpy_initialize_types ( void  )

◆ gdbpy_initialize_unwind()

int gdbpy_initialize_unwind ( void  )

◆ gdbpy_initialize_values()

int gdbpy_initialize_values ( void  )

Definition at line 1760 of file py-value.c.

References gdb_module, gdb_pymodule_addobject(), and value_object_type.

Referenced by do_start_initialization().

◆ gdbpy_initialize_xmethods()

int gdbpy_initialize_xmethods ( void  )

◆ gdbpy_invoke_xmethod()

struct value* gdbpy_invoke_xmethod ( const struct extension_language_defn extlang,
struct xmethod_worker worker,
struct value obj,
struct value **  args,
int  nargs 
)

◆ gdbpy_is_field()

int gdbpy_is_field ( PyObject *  obj)

Definition at line 151 of file py-type.c.

References field_object_type.

Referenced by valpy_getitem().

◆ gdbpy_is_lazy_string()

int gdbpy_is_lazy_string ( PyObject *  result)

◆ gdbpy_is_string()

int gdbpy_is_string ( PyObject *  obj)

◆ gdbpy_is_value_object()

int gdbpy_is_value_object ( PyObject *  obj)

Definition at line 1754 of file py-value.c.

References value_object_type.

Referenced by get_addr_from_python(), and infpy_thread_from_thread_handle().

◆ gdbpy_lookup_global_symbol()

PyObject* gdbpy_lookup_global_symbol ( PyObject *  self,
PyObject *  args,
PyObject *  kw 
)

◆ gdbpy_lookup_objfile()

PyObject* gdbpy_lookup_objfile ( PyObject *  self,
PyObject *  args,
PyObject *  kw 
)

◆ gdbpy_lookup_symbol()

PyObject* gdbpy_lookup_symbol ( PyObject *  self,
PyObject *  args,
PyObject *  kw 
)

◆ gdbpy_lookup_type()

PyObject* gdbpy_lookup_type ( PyObject *  self,
PyObject *  args,
PyObject *  kw 
)

◆ gdbpy_newest_frame()

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

◆ gdbpy_obj_to_string()

gdb::unique_xmalloc_ptr<char> gdbpy_obj_to_string ( PyObject *  obj)

◆ gdbpy_parameter_value()

PyObject* gdbpy_parameter_value ( enum var_types  type,
void *  var 
)

◆ gdbpy_parse_command_name()

char* gdbpy_parse_command_name ( const char *  name,
struct cmd_list_element ***  base_list,
struct cmd_list_element **  start_list 
)

Definition at line 405 of file py-cmd.c.

References _, CMD_LIST_AMBIGUOUS, lookup_cmd_1(), name, cmd_list_element::prefixlist, xfree(), and xmalloc().

Referenced by cmdpy_init(), and parmpy_init().

◆ gdbpy_preserve_values()

void gdbpy_preserve_values ( const struct extension_language_defn ,
struct objfile objfile,
htab_t  copied_types 
)

◆ gdbpy_print_python_errors_p()

int gdbpy_print_python_errors_p ( void  )

Definition at line 1252 of file python.c.

References gdbpy_should_print_stack, and python_excp_none.

Referenced by print_children().

◆ gdbpy_print_stack()

void gdbpy_print_stack ( void  )

Definition at line 1262 of file python.c.

References _, begin_line(), CATCH, END_CATCH, fprintf_filtered(), gdb_stderr, gdbpy_exception_to_string(), gdbpy_obj_to_string(), gdbpy_should_print_stack, python_excp_full, python_excp_none, RETURN_MASK_ALL, TRY, and type.

Referenced by _initialize_python(), add_thread_object(), bpfinishpy_detect_out_scope_cb(), bpfinishpy_out_of_scope(), bpfinishpy_post_stop_hook(), bpfinishpy_pre_stop_hook(), cmdpy_function(), construct_visualizer(), do_finish_initialization(), evpy_emit_event(), fnpy_call(), gdbpy_apply_frame_filter(), gdbpy_apply_type_printers(), gdbpy_before_prompt_hook(), gdbpy_breakpoint_cond_says_stop(), gdbpy_breakpoint_created(), gdbpy_breakpoint_deleted(), gdbpy_breakpoint_modified(), gdbpy_finish_initialization(), gdbpy_get_display_hint(), gdbpy_get_matching_xmethod_workers(), gdbpy_get_xmethod_arg_types(), gdbpy_get_xmethod_result_type(), gdbpy_invoke_xmethod(), gdbpy_rbreak(), gdbpy_start_type_printers(), get_doc_string(), get_set_value(), get_show_value(), install_default_visualizer(), print_children(), print_stack_unless_memory_error(), py_varobj_get_iterator(), py_varobj_iter_next(), python_inferior_deleted(), python_inferior_exit(), python_interactive_command(), python_new_inferior(), python_new_objfile(), python_on_inferior_call_post(), python_on_inferior_call_pre(), python_on_memory_change(), python_on_normal_stop(), python_on_register_change(), python_on_resume(), python_run_simple_file(), pyuw_sniffer(), varobj_set_visualizer(), varobj_value_get_print_value(), and gdbpy_enter::~gdbpy_enter().

◆ gdbpy_selected_frame()

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

◆ gdbpy_selected_inferior()

PyObject* gdbpy_selected_inferior ( PyObject *  self,
PyObject *  args 
)

Definition at line 911 of file py-inferior.c.

References current_inferior(), and inferior_to_inferior_object().

◆ gdbpy_selected_thread()

PyObject* gdbpy_selected_thread ( PyObject *  self,
PyObject *  args 
)

Definition at line 284 of file py-infthread.c.

References find_thread_object(), inferior_ptid, and threadlist_entry::thread_obj.

◆ gdbpy_start_recording()

PyObject* gdbpy_start_recording ( PyObject *  self,
PyObject *  args 
)

◆ gdbpy_stop_recording()

PyObject* gdbpy_stop_recording ( PyObject *  self,
PyObject *  args 
)

Definition at line 638 of file py-record.c.

References CATCH, END_CATCH, gdbpy_convert_exception(), record_stop(), RETURN_MASK_ALL, and TRY.

◆ gdbpy_string_to_argv()

PyObject* gdbpy_string_to_argv ( PyObject *  self,
PyObject *  args 
)

◆ get_addr_from_python()

int get_addr_from_python ( PyObject *  obj,
CORE_ADDR addr 
)

◆ host_string_to_python_string()

PyObject* host_string_to_python_string ( const char *  str)

◆ inferior_to_inferior_object()

PyObject* inferior_to_inferior_object ( struct inferior inferior)

◆ objfile_to_objfile_object()

PyObject* objfile_to_objfile_object ( struct objfile )

◆ objfpy_get_frame_filters()

PyObject* objfpy_get_frame_filters ( PyObject *  ,
void *   
)

Definition at line 283 of file py-objfile.c.

◆ objfpy_get_frame_unwinders()

PyObject* objfpy_get_frame_unwinders ( PyObject *  ,
void *   
)

Definition at line 324 of file py-objfile.c.

◆ objfpy_get_printers()

PyObject* objfpy_get_printers ( PyObject *  ,
void *   
)

Definition at line 243 of file py-objfile.c.

Referenced by find_pretty_printer_from_objfiles().

◆ objfpy_get_xmethods()

PyObject* objfpy_get_xmethods ( PyObject *  ,
void *   
)

Definition at line 377 of file py-objfile.c.

Referenced by gdbpy_get_matching_xmethod_workers().

◆ pspace_to_pspace_object()

PyObject* pspace_to_pspace_object ( struct program_space )

◆ pspy_get_frame_filters()

PyObject* pspy_get_frame_filters ( PyObject *  ,
void *   
)

Definition at line 184 of file py-progspace.c.

◆ pspy_get_frame_unwinders()

PyObject* pspy_get_frame_unwinders ( PyObject *  ,
void *   
)

Definition at line 225 of file py-progspace.c.

◆ pspy_get_printers()

PyObject* pspy_get_printers ( PyObject *  ,
void *   
)

Definition at line 144 of file py-progspace.c.

Referenced by find_pretty_printer_from_progspace().

◆ pspy_get_xmethods()

PyObject* pspy_get_xmethods ( PyObject *  ,
void *   
)

Definition at line 278 of file py-progspace.c.

Referenced by gdbpy_get_matching_xmethod_workers().

◆ py_varobj_get_iterator()

struct varobj_iter* py_varobj_get_iterator ( struct varobj var,
PyObject *  printer 
)

◆ python_string_to_host_string()

gdb::unique_xmalloc_ptr<char> python_string_to_host_string ( PyObject *  obj)

◆ python_string_to_target_python_string()

PyObject* python_string_to_target_python_string ( PyObject *  obj)

◆ python_string_to_target_string()

gdb::unique_xmalloc_ptr<char> python_string_to_target_string ( PyObject *  obj)

◆ python_string_to_unicode()

PyObject* python_string_to_unicode ( PyObject *  obj)

◆ sal_object_to_symtab_and_line()

struct symtab_and_line* sal_object_to_symtab_and_line ( PyObject *  obj)

Definition at line 453 of file py-symtab.c.

References sal_object_type.

Referenced by salpy_is_valid().

◆ symbol_object_to_symbol()

struct symbol* symbol_object_to_symbol ( PyObject *  obj)

Definition at line 338 of file py-symbol.c.

References symbol_object_type.

Referenced by extract_sym(), frapy_read_var(), and sympy_is_valid().

◆ symbol_to_symbol_object()

PyObject* symbol_to_symbol_object ( struct symbol sym)

◆ symtab_and_line_to_sal_object()

PyObject* symtab_and_line_to_sal_object ( struct symtab_and_line  sal)

◆ symtab_object_to_symtab()

struct symtab* symtab_object_to_symtab ( PyObject *  obj)

Definition at line 462 of file py-symtab.c.

References symtab_object_type.

Referenced by ltpy_is_valid(), ltpy_iter_is_valid(), and stpy_is_valid().

◆ symtab_to_linetable_object()

PyObject* symtab_to_linetable_object ( PyObject *  symtab)

Definition at line 86 of file py-linetable.c.

References linetable_object_type, and linetable_object::symtab.

Referenced by stpy_get_linetable().

◆ symtab_to_symtab_object()

PyObject* symtab_to_symtab_object ( struct symtab symtab)

Definition at line 424 of file py-symtab.c.

References set_symtab(), and symtab_object_type.

Referenced by set_sal(), and sympy_get_symtab().

◆ type_object_to_type()

struct type* type_object_to_type ( PyObject *  obj)

◆ type_to_type_object()

PyObject* type_to_type_object ( struct type )

◆ unicode_to_target_string()

gdb::unique_xmalloc_ptr<char> unicode_to_target_string ( PyObject *  unicode_str)

Definition at line 103 of file py-utils.c.

References python_gdbarch, target_charset(), and unicode_to_encoded_string().

Referenced by python_string_to_target_string().

◆ value_object_to_value()

struct value* value_object_to_value ( PyObject *  self)

◆ value_to_value_object()

PyObject* value_to_value_object ( struct value v)

Variable Documentation

◆ bppy_pending_object

gdbpy_breakpoint_object* bppy_pending_object

Definition at line 42 of file py-breakpoint.c.

Referenced by bpfinishpy_init(), bppy_init(), and gdbpy_breakpoint_created().

◆ gdb_module

PyObject* gdb_module

◆ gdb_python_initialized

int gdb_python_initialized

◆ gdb_python_module

PyObject* gdb_python_module

◆ gdbpy_children_cst

PyObject* gdbpy_children_cst

◆ gdbpy_display_hint_cst

PyObject* gdbpy_display_hint_cst

Definition at line 122 of file python.c.

Referenced by do_start_initialization(), and gdbpy_get_display_hint().

◆ gdbpy_doc_cst

PyObject* gdbpy_doc_cst

Definition at line 123 of file python.c.

Referenced by cmdpy_init(), do_start_initialization(), and parmpy_init().

◆ gdbpy_enabled_cst

PyObject* gdbpy_enabled_cst

Definition at line 124 of file python.c.

Referenced by do_start_initialization(), and search_pp_list().

◆ gdbpy_gdb_error

PyObject* gdbpy_gdb_error

◆ gdbpy_gdb_memory_error

PyObject* gdbpy_gdb_memory_error

◆ gdbpy_gdberror_exc

PyObject* gdbpy_gdberror_exc

Definition at line 128 of file python.c.

Referenced by cmdpy_function(), do_start_initialization(), and fnpy_call().

◆ gdbpy_to_string_cst

PyObject* gdbpy_to_string_cst

◆ gdbpy_value_cst

PyObject* gdbpy_value_cst

Definition at line 125 of file python.c.

Referenced by convert_value_from_python(), and do_start_initialization().

◆ python_gdbarch

struct gdbarch* python_gdbarch

◆ python_language

const struct language_defn* python_language

◆ set_python_list

struct cmd_list_element* set_python_list

◆ show_python_list

struct cmd_list_element* show_python_list