GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
python.c File Reference
#include "defs.h"
#include "arch-utils.h"
#include "command.h"
#include "ui-out.h"
#include "cli/cli-script.h"
#include "gdbcmd.h"
#include "progspace.h"
#include "objfiles.h"
#include "value.h"
#include "language.h"
#include "gdbsupport/event-loop.h"
#include "readline/tilde.h"
#include "python.h"
#include "extension-priv.h"
#include "cli/cli-utils.h"
#include <ctype.h>
#include "location.h"
#include "run-on-main-thread.h"
#include "gdbsupport/selftest.h"
#include "observable.h"
#include "cli/cli-decode.h"
#include "charset.h"
#include "top.h"
#include "python-internal.h"
#include "linespec.h"
#include "source.h"
#include "gdbsupport/version.h"
#include "target.h"
#include "gdbthread.h"
#include "interps.h"
#include "event-top.h"
#include "py-event.h"
#include "py-event-types.def"

Go to the source code of this file.

Classes

class  gdbpy_gil
 
struct  gdbpy_event
 

Macros

#define GDB_PY_DEFINE_EVENT_TYPE(name, py_name, doc, base)
 
#define GDB_PY_DEFINE_EVENT_TYPE(name, py_name, doc, base)
 

Functions

static void gdbpy_initialize (const struct extension_language_defn *)
 
static int gdbpy_initialized (const struct extension_language_defn *)
 
static void gdbpy_eval_from_control_command (const struct extension_language_defn *, struct command_line *cmd)
 
static void gdbpy_start_type_printers (const struct extension_language_defn *, struct ext_lang_type_printers *)
 
static enum ext_lang_rc gdbpy_apply_type_printers (const struct extension_language_defn *, const struct ext_lang_type_printers *, struct type *, char **)
 
static void gdbpy_free_type_printers (const struct extension_language_defn *, struct ext_lang_type_printers *)
 
static void gdbpy_set_quit_flag (const struct extension_language_defn *)
 
static int gdbpy_check_quit_flag (const struct extension_language_defn *)
 
static enum ext_lang_rc gdbpy_before_prompt_hook (const struct extension_language_defn *, const char *current_gdb_prompt)
 
static gdb::optional< std::string > gdbpy_colorize (const std::string &filename, const std::string &contents)
 
static gdb::optional< std::string > gdbpy_colorize_disasm (const std::string &content, gdbarch *gdbarch)
 
static int eval_python_command (const char *command)
 
static void python_interactive_command (const char *arg, int from_tty)
 
static void python_run_simple_file (FILE *file, const char *filename)
 
static std::string compute_python_string (struct command_line *l)
 
static void python_command (const char *arg, int from_tty)
 
PyObject * gdbpy_parameter_value (const setting &var)
 
static PyObject * gdbpy_parameter (PyObject *self, PyObject *args)
 
static PyObject * gdbpy_target_charset (PyObject *self, PyObject *args)
 
static PyObject * gdbpy_target_wide_charset (PyObject *self, PyObject *args)
 
static PyObject * gdbpy_host_charset (PyObject *self, PyObject *args)
 
static PyObject * execute_gdb_command (PyObject *self, PyObject *args, PyObject *kw)
 
static PyObject * gdbpy_rbreak (PyObject *self, PyObject *args, PyObject *kw)
 
static PyObject * gdbpy_decode_line (PyObject *self, PyObject *args)
 
static PyObject * gdbpy_parse_and_eval (PyObject *self, PyObject *args)
 
static PyObject * gdbpy_invalidate_cached_frames (PyObject *self, PyObject *args)
 
static void gdbpy_source_script (const struct extension_language_defn *extlang, FILE *file, const char *filename)
 
static PyObject * gdbpy_post_event (PyObject *self, PyObject *args)
 
static PyObject * gdbpy_format_address (PyObject *self, PyObject *args, PyObject *kw)
 
static PyObject * gdbpy_write (PyObject *self, PyObject *args, PyObject *kw)
 
static PyObject * gdbpy_flush (PyObject *self, PyObject *args, PyObject *kw)
 
int gdbpy_print_python_errors_p (void)
 
void gdbpy_print_stack (void)
 
void gdbpy_print_stack_or_quit ()
 
static PyObject * gdbpy_progspaces (PyObject *unused1, PyObject *unused2)
 
static PyObject * gdbpy_current_language (PyObject *unused1, PyObject *unused2)
 
static void gdbpy_source_objfile_script (const struct extension_language_defn *extlang, struct objfile *objfile, FILE *file, const char *filename)
 
static void gdbpy_execute_objfile_script (const struct extension_language_defn *extlang, struct objfile *objfile, const char *name, const char *script)
 
static PyObject * gdbpy_get_current_objfile (PyObject *unused1, PyObject *unused2)
 
static void show_python_ignore_environment (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void set_python_ignore_environment (const char *args, int from_tty, struct cmd_list_element *c)
 
static void show_python_dont_write_bytecode (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static int python_write_bytecode ()
 
static void set_python_dont_write_bytecode (const char *args, int from_tty, struct cmd_list_element *c)
 
static void finalize_python (void *ignore)
 
PyMODINIT_FUNC init__gdb_module (void)
 
static int emit_exiting_event (int exit_code)
 
static void gdbpy_gdb_exiting (int exit_code)
 
static bool do_start_initialization ()
 
void _initialize_python ()
 
static bool do_initialize (const struct extension_language_defn *extlang)
 

Variables

static const char python_excp_none [] = "none"
 
static const char python_excp_full [] = "full"
 
static const char python_excp_message [] = "message"
 
static const char *const python_excp_enums []
 
static const char * gdbpy_should_print_stack = python_excp_message
 
int gdb_python_initialized
 
PyMethodDef python_GdbMethods []
 
PyObject * gdb_module
 
PyObject * gdb_python_module
 
PyObject * gdbpy_to_string_cst
 
PyObject * gdbpy_children_cst
 
PyObject * gdbpy_display_hint_cst
 
PyObject * gdbpy_doc_cst
 
PyObject * gdbpy_enabled_cst
 
PyObject * gdbpy_value_cst
 
PyObject * gdbpy_gdberror_exc
 
PyObject * gdbpy_gdb_error
 
PyObject * gdbpy_gdb_memory_error
 
static script_sourcer_func gdbpy_source_script
 
static objfile_script_sourcer_func gdbpy_source_objfile_script
 
static objfile_script_executor_func gdbpy_execute_objfile_script
 
static const struct extension_language_script_ops python_extension_script_ops
 
static const struct extension_language_ops python_extension_ops
 
const struct extension_language_defn extension_language_python
 
struct objfilegdbpy_current_objfile
 
static bool python_ignore_environment = false
 
static enum auto_boolean python_dont_write_bytecode = AUTO_BOOLEAN_AUTO
 
static struct cmd_list_elementuser_set_python_list
 
static struct cmd_list_elementuser_show_python_list
 
static struct PyModuleDef python_GdbModuleDef
 
cmd_list_elementpython_cmd_element = nullptr
 

Macro Definition Documentation

◆ GDB_PY_DEFINE_EVENT_TYPE [1/2]

#define GDB_PY_DEFINE_EVENT_TYPE (   name,
  py_name,
  doc,
  base 
)
Value:
if (gdbpy_initialize_event_generic (&name##_event_object_type, py_name) < 0) \
return false;
const char *const name
Definition: aarch64-tdep.c:67
int gdbpy_initialize_event_generic(PyTypeObject *type, const char *name)
Definition: py-event.c:69

Definition at line 2655 of file python.c.

◆ GDB_PY_DEFINE_EVENT_TYPE [2/2]

#define GDB_PY_DEFINE_EVENT_TYPE (   name,
  py_name,
  doc,
  base 
)

Definition at line 2655 of file python.c.

Function Documentation

◆ _initialize_python()

void _initialize_python ( )

Definition at line 2272 of file python.c.

Referenced by initialize_all_files().

◆ compute_python_string()

static std::string compute_python_string ( struct command_line l)
static

Definition at line 406 of file python.c.

References command_line::line, and command_line::next.

Referenced by gdbpy_eval_from_control_command().

◆ do_initialize()

static bool do_initialize ( const struct extension_language_defn extlang)
static

◆ do_start_initialization()

static bool do_start_initialization ( )
static

Definition at line 2001 of file python.c.

References finalize_python(), gdb::observers::gdb_exiting, gdb_module, gdb_pymodule_addobject(), gdb_python_initialized, gdbpy_children_cst, gdbpy_display_hint_cst, gdbpy_doc_cst, gdbpy_enabled_cst, gdbpy_events_mod_func(), gdbpy_gdb_error, gdbpy_gdb_exiting(), gdbpy_gdb_memory_error, gdbpy_gdberror_exc, gdbpy_initialize_arch(), gdbpy_initialize_auto_load(), gdbpy_initialize_blocks(), gdbpy_initialize_breakpoint_locations(), gdbpy_initialize_breakpoints(), gdbpy_initialize_btrace(), gdbpy_initialize_commands(), gdbpy_initialize_connection(), gdbpy_initialize_disasm(), gdbpy_initialize_event(), gdbpy_initialize_eventregistry(), gdbpy_initialize_finishbreakpoints(), gdbpy_initialize_frames(), gdbpy_initialize_functions(), gdbpy_initialize_gdb_readline(), gdbpy_initialize_inferior(), gdbpy_initialize_instruction(), gdbpy_initialize_lazy_string(), gdbpy_initialize_linetable(), gdbpy_initialize_membuf(), gdbpy_initialize_micommands(), gdbpy_initialize_objfile(), gdbpy_initialize_parameters(), gdbpy_initialize_pspace(), gdbpy_initialize_record(), gdbpy_initialize_registers(), gdbpy_initialize_symbols(), gdbpy_initialize_symtabs(), gdbpy_initialize_thread(), gdbpy_initialize_tui(), gdbpy_initialize_types(), gdbpy_initialize_unwind(), gdbpy_initialize_values(), gdbpy_initialize_xmethods(), gdbpy_to_string_cst, gdbpy_value_cst, host_name, init__gdb_module(), ldirname(), PyErr_NewException, PyEval_InitThreads, python_ignore_environment, python_libdir, python_write_bytecode(), status, target_name, and version.

Referenced by gdbpy_initialize().

◆ emit_exiting_event()

static int emit_exiting_event ( int  exit_code)
static

◆ eval_python_command()

static int eval_python_command ( const char *  command)
static

Definition at line 307 of file python.c.

Referenced by python_interactive_command().

◆ execute_gdb_command()

static PyObject * execute_gdb_command ( PyObject *  self,
PyObject *  args,
PyObject *  kw 
)
static

◆ finalize_python()

static void finalize_python ( void *  ignore)
static

◆ gdbpy_apply_type_printers()

static enum ext_lang_rc gdbpy_apply_type_printers ( const struct extension_language_defn extlang,
const struct ext_lang_type_printers ext_printers,
struct type type,
char **  prettied_type 
)
static

◆ gdbpy_before_prompt_hook()

static enum ext_lang_rc gdbpy_before_prompt_hook ( const struct extension_language_defn extlang,
const char *  current_gdb_prompt 
)
static

◆ gdbpy_check_quit_flag()

static int gdbpy_check_quit_flag ( const struct extension_language_defn extlang)
static

Definition at line 293 of file python.c.

References gdb_python_initialized.

◆ gdbpy_colorize()

static gdb::optional< std::string > gdbpy_colorize ( const std::string &  filename,
const std::string &  contents 
)
static

Definition at line 1149 of file python.c.

References gdb_python_initialized, and gdbpy_print_stack().

◆ gdbpy_colorize_disasm()

static gdb::optional< std::string > gdbpy_colorize_disasm ( const std::string &  content,
gdbarch gdbarch 
)
static

Definition at line 1226 of file python.c.

References gdb_python_initialized, gdbarch_to_arch_object(), and gdbpy_print_stack().

◆ gdbpy_current_language()

static PyObject * gdbpy_current_language ( PyObject *  unused1,
PyObject *  unused2 
)
static

◆ gdbpy_decode_line()

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

◆ gdbpy_eval_from_control_command()

static void gdbpy_eval_from_control_command ( const struct extension_language_defn extlang,
struct command_line cmd 
)
static

◆ gdbpy_execute_objfile_script()

static void gdbpy_execute_objfile_script ( const struct extension_language_defn extlang,
struct objfile objfile,
const char *  name,
const char *  script 
)
static

Definition at line 1617 of file python.c.

References objfile::arch(), gdb_python_initialized, and gdbpy_current_objfile.

◆ gdbpy_flush()

static PyObject * gdbpy_flush ( PyObject *  self,
PyObject *  args,
PyObject *  kw 
)
static

◆ gdbpy_format_address()

static PyObject * gdbpy_format_address ( PyObject *  self,
PyObject *  args,
PyObject *  kw 
)
static

◆ gdbpy_free_type_printers()

static void gdbpy_free_type_printers ( const struct extension_language_defn extlang,
struct ext_lang_type_printers ext_printers 
)
static

Definition at line 1753 of file python.c.

References gdb_python_initialized, if(), and ext_lang_type_printers::py_type_printers.

◆ gdbpy_gdb_exiting()

static void gdbpy_gdb_exiting ( int  exit_code)
static

Definition at line 1989 of file python.c.

References emit_exiting_event(), gdb_python_initialized, and gdbpy_print_stack().

Referenced by do_start_initialization().

◆ gdbpy_get_current_objfile()

static PyObject * gdbpy_get_current_objfile ( PyObject *  unused1,
PyObject *  unused2 
)
static

Definition at line 1634 of file python.c.

References gdbpy_current_objfile, and objfile_to_objfile_object().

◆ gdbpy_host_charset()

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

Definition at line 593 of file python.c.

References host_charset().

◆ gdbpy_initialize()

static void gdbpy_initialize ( const struct extension_language_defn extlang)
static

Definition at line 2459 of file python.c.

References do_initialize(), do_start_initialization(), and gdbpy_print_stack().

◆ gdbpy_initialized()

static int gdbpy_initialized ( const struct extension_language_defn extlang)
static

Definition at line 2477 of file python.c.

References gdb_python_initialized.

◆ gdbpy_invalidate_cached_frames()

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

Definition at line 975 of file python.c.

References reinit_frame_cache().

◆ gdbpy_parameter()

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

◆ gdbpy_parameter_value()

PyObject * gdbpy_parameter_value ( const setting var)

◆ gdbpy_parse_and_eval()

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

Definition at line 951 of file python.c.

References GDB_PY_HANDLE_EXCEPTION, parse_and_eval(), and value_to_value_object().

◆ gdbpy_post_event()

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

Definition at line 1047 of file python.c.

References func, and run_on_main_thread().

◆ gdbpy_print_python_errors_p()

int gdbpy_print_python_errors_p ( void  )

Definition at line 1474 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 1484 of file python.c.

References begin_line(), gdb_printf(), gdb_stderr, gdbpy_should_print_stack, python_excp_full, python_excp_none, gdbpy_err_fetch::to_string(), and gdbpy_err_fetch::type_to_string().

Referenced by add_thread_object(), bpfinishpy_detect_out_scope_cb(), bpfinishpy_out_of_scope(), bpfinishpy_post_stop_hook(), bpfinishpy_pre_stop_hook(), cmdpy_function(), connpy_connection_removed(), construct_visualizer(), python_xmethod_worker::do_get_arg_types(), python_xmethod_worker::do_get_result_type(), do_initialize(), evpy_emit_event(), fnpy_call(), gdbpy_apply_type_printers(), gdbpy_before_prompt_hook(), gdbpy_breakpoint_cond_says_stop(), gdbpy_breakpoint_created(), gdbpy_breakpoint_deleted(), gdbpy_breakpoint_modified(), gdbpy_colorize(), gdbpy_colorize_disasm(), gdbpy_gdb_exiting(), gdbpy_get_display_hint(), gdbpy_get_matching_xmethod_workers(), gdbpy_handle_exception(), gdbpy_initialize(), gdbpy_print_insn(), gdbpy_print_stack_or_quit(), gdbpy_rbreak(), gdbpy_start_type_printers(), get_doc_string(), get_set_value(), get_show_value(), install_default_visualizer(), python_xmethod_worker::invoke(), py_varobj_iter::next(), gdbpy_event::operator()(), print_children(), print_stack_unless_memory_error(), py_varobj_get_iterator(), python_free_objfile(), 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(), pyuw_sniffer(), varobj_set_visualizer(), varobj_value_get_print_value(), and gdbpy_enter::~gdbpy_enter().

◆ gdbpy_print_stack_or_quit()

void gdbpy_print_stack_or_quit ( )

Definition at line 1544 of file python.c.

References gdbpy_print_stack().

Referenced by gdbpy_apply_frame_filter(), and pyuw_sniffer().

◆ gdbpy_progspaces()

static PyObject * gdbpy_progspaces ( PyObject *  unused1,
PyObject *  unused2 
)
static

Definition at line 1559 of file python.c.

References program_spaces, and pspace_to_pspace_object().

◆ gdbpy_rbreak()

static PyObject * gdbpy_rbreak ( PyObject *  self,
PyObject *  args,
PyObject *  kw 
)
static

◆ gdbpy_set_quit_flag()

static void gdbpy_set_quit_flag ( const struct extension_language_defn extlang)
static

Definition at line 285 of file python.c.

◆ gdbpy_source_objfile_script()

static void gdbpy_source_objfile_script ( const struct extension_language_defn extlang,
struct objfile objfile,
FILE *  file,
const char *  filename 
)
static

◆ gdbpy_source_script()

static void gdbpy_source_script ( const struct extension_language_defn extlang,
FILE *  file,
const char *  filename 
)
static

Definition at line 988 of file python.c.

References python_run_simple_file().

◆ gdbpy_start_type_printers()

static void gdbpy_start_type_printers ( const struct extension_language_defn extlang,
struct ext_lang_type_printers ext_printers 
)
static

◆ gdbpy_target_charset()

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

Definition at line 573 of file python.c.

References gdbpy_enter::get_gdbarch(), host_charset(), and target_charset().

◆ gdbpy_target_wide_charset()

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

Definition at line 583 of file python.c.

References gdbpy_enter::get_gdbarch(), host_charset(), and target_wide_charset().

◆ gdbpy_write()

static PyObject * gdbpy_write ( PyObject *  self,
PyObject *  args,
PyObject *  kw 
)
static

◆ init__gdb_module()

PyMODINIT_FUNC init__gdb_module ( void  )

Definition at line 1960 of file python.c.

References python_GdbModuleDef.

Referenced by do_start_initialization().

◆ python_command()

static void python_command ( const char *  arg,
int  from_tty 
)
static

◆ python_interactive_command()

static void python_interactive_command ( const char *  arg,
int  from_tty 
)
static

◆ python_run_simple_file()

static void python_run_simple_file ( FILE *  file,
const char *  filename 
)
static

Definition at line 373 of file python.c.

References gdb_python_module, and PyObject_CallMethod.

Referenced by gdbpy_source_objfile_script(), and gdbpy_source_script().

◆ python_write_bytecode()

static int python_write_bytecode ( )
static

◆ set_python_dont_write_bytecode()

static void set_python_dont_write_bytecode ( const char *  args,
int  from_tty,
struct cmd_list_element c 
)
static

Definition at line 1888 of file python.c.

References python_write_bytecode().

◆ set_python_ignore_environment()

static void set_python_ignore_environment ( const char *  args,
int  from_tty,
struct cmd_list_element c 
)
static

Definition at line 1816 of file python.c.

References python_ignore_environment.

◆ show_python_dont_write_bytecode()

static void show_python_dont_write_bytecode ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

◆ show_python_ignore_environment()

static void show_python_ignore_environment ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 1803 of file python.c.

References gdb_printf().

Variable Documentation

◆ extension_language_python

const struct extension_language_defn extension_language_python
Initial value:
=
{
"python",
"Python",
".py",
"-gdb.py",
}
@ python_control
Definition: cli-script.h:43
@ EXT_LANG_PYTHON
Definition: extension.h:64
static const struct extension_language_ops python_extension_ops
Definition: python.c:139
static const struct extension_language_script_ops python_extension_script_ops
Definition: python.c:129

Definition at line 177 of file python.c.

Referenced by finalize_python(), gdbpy_enter::gdbpy_enter(), and info_auto_load_python_scripts().

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

struct objfile* gdbpy_current_objfile

◆ gdbpy_display_hint_cst

PyObject* gdbpy_display_hint_cst

Definition at line 90 of file python.c.

Referenced by do_start_initialization(), and gdbpy_get_display_hint().

◆ gdbpy_doc_cst

PyObject* gdbpy_doc_cst

Definition at line 91 of file python.c.

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

◆ gdbpy_enabled_cst

PyObject* gdbpy_enabled_cst

Definition at line 92 of file python.c.

Referenced by do_start_initialization(), and search_pp_list().

◆ gdbpy_execute_objfile_script

objfile_script_executor_func gdbpy_execute_objfile_script
static

Definition at line 106 of file python.c.

◆ gdbpy_gdb_error

PyObject* gdbpy_gdb_error

◆ gdbpy_gdb_memory_error

PyObject* gdbpy_gdb_memory_error

◆ gdbpy_gdberror_exc

PyObject* gdbpy_gdberror_exc

◆ gdbpy_should_print_stack

const char* gdbpy_should_print_stack = python_excp_message
static

Definition at line 59 of file python.c.

Referenced by gdbpy_print_python_errors_p(), and gdbpy_print_stack().

◆ gdbpy_source_objfile_script

objfile_script_sourcer_func gdbpy_source_objfile_script
static

Definition at line 105 of file python.c.

◆ gdbpy_source_script

script_sourcer_func gdbpy_source_script
static

Definition at line 104 of file python.c.

◆ gdbpy_to_string_cst

PyObject* gdbpy_to_string_cst

◆ gdbpy_value_cst

PyObject* gdbpy_value_cst

Definition at line 93 of file python.c.

Referenced by convert_value_from_python(), and do_start_initialization().

◆ python_cmd_element

cmd_list_element* python_cmd_element = nullptr

Definition at line 2268 of file python.c.

Referenced by process_next_line().

◆ python_dont_write_bytecode

enum auto_boolean python_dont_write_bytecode = AUTO_BOOLEAN_AUTO
static

Definition at line 1832 of file python.c.

Referenced by python_write_bytecode(), and show_python_dont_write_bytecode().

◆ python_excp_enums

const char* const python_excp_enums[]
static
Initial value:
=
{
NULL
}
static const char python_excp_none[]
Definition: python.c:42
static const char python_excp_message[]
Definition: python.c:44
static const char python_excp_full[]
Definition: python.c:43

Definition at line 47 of file python.c.

◆ python_excp_full

const char python_excp_full[] = "full"
static

Definition at line 43 of file python.c.

Referenced by gdbpy_print_stack().

◆ python_excp_message

const char python_excp_message[] = "message"
static

Definition at line 44 of file python.c.

◆ python_excp_none

const char python_excp_none[] = "none"
static

Definition at line 42 of file python.c.

Referenced by gdbpy_print_python_errors_p(), and gdbpy_print_stack().

◆ python_extension_ops

const struct extension_language_ops python_extension_ops
static

Definition at line 139 of file python.c.

◆ python_extension_script_ops

const struct extension_language_script_ops python_extension_script_ops
static
Initial value:
=
{
}
bool gdbpy_auto_load_enabled(const struct extension_language_defn *extlang)
Definition: py-auto-load.c:46
static script_sourcer_func gdbpy_source_script
Definition: python.c:104
static objfile_script_executor_func gdbpy_execute_objfile_script
Definition: python.c:106
static objfile_script_sourcer_func gdbpy_source_objfile_script
Definition: python.c:105

Definition at line 129 of file python.c.

◆ python_GdbMethods

PyMethodDef python_GdbMethods

Definition at line 2482 of file python.c.

◆ python_GdbModuleDef

struct PyModuleDef python_GdbModuleDef
static
Initial value:
=
{
PyModuleDef_HEAD_INIT,
"_gdb",
NULL,
-1,
NULL,
NULL,
NULL,
NULL
}
PyMethodDef python_GdbMethods[]
Definition: python.c:2482

Definition at line 1942 of file python.c.

Referenced by init__gdb_module().

◆ python_ignore_environment

bool python_ignore_environment = false
static

◆ user_set_python_list

struct cmd_list_element* user_set_python_list
static

Definition at line 1906 of file python.c.

◆ user_show_python_list

struct cmd_list_element* user_show_python_list
static

Definition at line 1907 of file python.c.