GDB (xrefs)
|
#include "defs.h"
#include "arch-utils.h"
#include "value.h"
#include "python-internal.h"
#include "charset.h"
#include "gdbcmd.h"
#include "cli/cli-decode.h"
#include "completer.h"
#include "language.h"
Go to the source code of this file.
Classes | |
struct | cmdpy_completer |
struct | cmdpy_object |
Macros | |
#define | N_COMPLETERS (sizeof (completers) / sizeof (completers[0])) |
Functions | |
PyTypeObject cmdpy_object_type | CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("cmdpy_object") |
static PyObject * | cmdpy_dont_repeat (PyObject *self, PyObject *args) |
static void | cmdpy_destroyer (struct cmd_list_element *self, void *context) |
static void | cmdpy_function (const char *args, int from_tty, cmd_list_element *command) |
static gdbpy_ref | cmdpy_completer_helper (struct cmd_list_element *command, const char *text, const char *word) |
static void | cmdpy_completer_handle_brkchars (struct cmd_list_element *command, completion_tracker &tracker, const char *text, const char *word) |
static void | cmdpy_completer (struct cmd_list_element *command, completion_tracker &tracker, const char *text, const char *word) |
gdb::unique_xmalloc_ptr< char > | gdbpy_parse_command_name (const char *name, struct cmd_list_element ***base_list, struct cmd_list_element **start_list) |
static int | cmdpy_init (PyObject *self, PyObject *args, PyObject *kw) |
static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION | gdbpy_initialize_commands (void) |
GDBPY_INITIALIZE_FILE (gdbpy_initialize_commands) | |
PyObject * | gdbpy_string_to_argv (PyObject *self, PyObject *args) |
Variables | |
static const struct cmdpy_completer | completers [] |
static PyObject * | invoke_cst |
static PyObject * | complete_cst |
static PyMethodDef | cmdpy_object_methods [] |
PyTypeObject | cmdpy_object_type |
#define N_COMPLETERS (sizeof (completers) / sizeof (completers[0])) |
Definition at line 50 of file py-cmd.c.
Referenced by cmdpy_completer(), cmdpy_completer_handle_brkchars(), cmdpy_init(), and gdbpy_initialize_commands().
|
static |
Definition at line 264 of file py-cmd.c.
References completion_tracker::add_completion(), cmdpy_completer_helper(), cmdpy_completer::completer, completers, gdb_py_int_as_long(), gdbpy_is_string(), N_COMPLETERS, python_string_to_host_string(), and value.
|
static |
Definition at line 221 of file py-cmd.c.
References cmdpy_completer_helper(), cmd_list_element::completer, completer_handle_brkchars_func_for_completer(), completers, gdb_py_int_as_long(), N_COMPLETERS, and value.
Referenced by cmdpy_init().
|
static |
Definition at line 170 of file py-cmd.c.
References complete_cst, cmd_list_element::context(), and host_charset().
Referenced by cmdpy_completer(), and cmdpy_completer_handle_brkchars().
|
static |
Definition at line 91 of file py-cmd.c.
References cmd_list_element::context().
Referenced by cmdpy_init().
Definition at line 80 of file py-cmd.c.
References dont_repeat().
|
static |
Definition at line 103 of file py-cmd.c.
References cmdpy_object::command, cmd_list_element::context(), gdbpy_handle_exception(), gdbpy_print_stack(), host_charset(), invoke_cst, and cmd_list_element::is_prefix().
Referenced by cmdpy_init().
Definition at line 426 of file py-cmd.c.
References add_cmd(), add_prefix_cmd(), cmd_list_element::allow_unknown, class_breakpoint, class_files, class_info, class_maintenance, class_obscure, class_run, class_stack, class_support, class_trace, class_tui, class_user, class_vars, cmdlist, cmdpy_completer_handle_brkchars(), cmdpy_destroyer(), cmdpy_function(), cmdpy_object::command, cmdpy_completer::completer, completers, cmd_list_element::destroyer, cmd_list_element::doc_allocated, cmd_list_element::func, gdb_PyArg_ParseTupleAndKeywords(), gdbpy_convert_exception(), gdbpy_doc_cst, gdbpy_fix_doc_string_indentation(), gdbpy_is_string(), gdbpy_parse_command_name(), invoke_cst, cmd_list_element::is_prefix(), N_COMPLETERS, name, cmd_list_element::name_allocated, no_class, python_string_to_host_string(), set_cmd_completer(), set_cmd_completer_handle_brkchars(), cmd_list_element::set_context(), and cmdpy_object::sub_list.
|
extern |
|
static |
Definition at line 555 of file py-cmd.c.
References class_breakpoint, class_files, class_info, class_maintenance, class_obscure, class_run, class_stack, class_support, class_trace, class_tui, class_user, class_vars, cmdpy_object_type, complete_cst, completers, gdb_module, gdb_pymodule_addobject(), invoke_cst, N_COMPLETERS, name, and no_class.
GDBPY_INITIALIZE_FILE | ( | gdbpy_initialize_commands | ) |
gdb::unique_xmalloc_ptr< char > gdbpy_parse_command_name | ( | const char * | name, |
struct cmd_list_element *** | base_list, | ||
struct cmd_list_element ** | start_list ) |
Definition at line 347 of file py-cmd.c.
References CMD_LIST_AMBIGUOUS, cmd_list_element::is_prefix(), lookup_cmd_1(), name, cmd_list_element::subcommands, valid_cmd_char_p(), and xmalloc().
Referenced by cmdpy_init(), and parmpy_init().
|
static |
PyTypeObject cmdpy_object_type |
Definition at line 616 of file py-cmd.c.
Referenced by gdbpy_initialize_commands().
|
static |
Definition at line 74 of file py-cmd.c.
Referenced by cmdpy_completer_helper(), and gdbpy_initialize_commands().
|
static |
Definition at line 40 of file py-cmd.c.
Referenced by cmdpy_completer(), cmdpy_completer_handle_brkchars(), cmdpy_init(), and gdbpy_initialize_commands().
|
static |
Definition at line 73 of file py-cmd.c.
Referenced by cmdpy_function(), cmdpy_init(), and gdbpy_initialize_commands().