GDB (xrefs)
Loading...
Searching...
No Matches
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"

Go to the source code of this file.

Functions

static void python_interactive_command (const char *arg, int from_tty)
 
static void python_command (const char *arg, int from_tty)
 
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 void set_python_dont_write_bytecode (const char *args, int from_tty, struct cmd_list_element *c)
 
void _initialize_python ()
 

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
 
const struct extension_language_defn extension_language_python
 
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
 
cmd_list_elementpython_cmd_element = nullptr
 

Function Documentation

◆ _initialize_python()

void _initialize_python ( )

Definition at line 2287 of file python.c.

Referenced by initialize_all_files().

◆ python_command()

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

Definition at line 1835 of file python.c.

References python_interactive_command().

◆ python_interactive_command()

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

Definition at line 1821 of file python.c.

References execute_control_command_untraced(), get_command_line(), and python_control.

Referenced by python_command().

◆ 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 1935 of file python.c.

◆ 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 1863 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 1850 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",
NULL,
NULL
}
@ python_control
Definition cli-script.h:43
@ EXT_LANG_PYTHON
Definition extension.h:64

Definition at line 179 of file python.c.

Referenced by info_auto_load_python_scripts().

◆ gdbpy_should_print_stack

const char* gdbpy_should_print_stack = python_excp_message
static

Definition at line 59 of file python.c.

◆ python_cmd_element

cmd_list_element* python_cmd_element = nullptr

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

Referenced by 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.

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

◆ python_ignore_environment

bool python_ignore_environment = false
static

Definition at line 1845 of file python.c.

Referenced by set_python_ignore_environment(), and show_python_dont_write_bytecode().

◆ user_set_python_list

struct cmd_list_element* user_set_python_list
static

Definition at line 1953 of file python.c.

◆ user_show_python_list

struct cmd_list_element* user_show_python_list
static

Definition at line 1954 of file python.c.