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])) |
Typedefs | |
typedef struct cmdpy_object | cmdpy_object |
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 (struct cmd_list_element *command, char *args, int from_tty) |
static PyObject * | 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, const char *text, const char *word) |
static | VEC (char_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) |
int | gdbpy_initialize_commands (void) |
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 52 of file py-cmd.c.
Referenced by cmdpy_completer_handle_brkchars(), cmdpy_init(), gdbpy_initialize_commands(), and VEC().
typedef struct cmdpy_object cmdpy_object |
|
static |
Definition at line 286 of file py-cmd.c.
References cmdpy_completer_helper(), current_language, do_cleanups(), ensure_python_env(), gdb_py_int_as_long(), get_current_arch(), N_COMPLETERS, and set_gdb_completion_word_break_characters().
Referenced by cmdpy_init().
|
static |
Definition at line 240 of file py-cmd.c.
References _, complete_cst, error(), get_cmd_context(), host_charset(), and Py_DECREF.
Referenced by cmdpy_completer_handle_brkchars(), and VEC().
|
static |
Definition at line 95 of file py-cmd.c.
References cmdpy_object::command, current_language, do_cleanups(), ensure_python_env(), get_current_arch(), Py_DECREF, and xfree().
Referenced by cmdpy_init().
|
static |
Definition at line 84 of file py-cmd.c.
References dont_repeat().
|
static |
Definition at line 119 of file py-cmd.c.
References _, cmdpy_object::command, current_language, do_cleanups(), ensure_python_env(), error(), gdbpy_exception_to_string(), gdbpy_gdberror_exc, gdbpy_print_stack(), get_cmd_context(), get_current_arch(), host_charset(), invoke_cst, make_cleanup(), cmd_list_element::prefixname, printf_filtered(), Py_DECREF, and xfree().
Referenced by cmdpy_init().
|
static |
Definition at line 518 of file py-cmd.c.
References _, add_cmd(), add_prefix_cmd(), cmd_list_element::allow_unknown, CATCH, class_breakpoint, class_files, class_info, class_maintenance, class_obscure, class_run, class_stack, class_support, class_trace, class_user, class_vars, cmdlist, cmdpy_completer_handle_brkchars(), cmdpy_destroyer(), cmdpy_function(), cmdpy_object::command, cmd_list_element::completer, cmd_list_element::destroyer, END_CATCH, cmd_list_element::func, gdbpy_doc_cst, gdbpy_is_string(), gdbpy_parse_command_name(), invoke_cst, N_COMPLETERS, name, no_class, Py_DECREF, python_string_to_host_string(), RETURN_MASK_ALL, RETURN_QUIT, set_cmd_completer(), set_cmd_completer_handle_brkchars(), set_cmd_context(), cmdpy_object::sub_list, TRY, xfree(), and xmalloc().
PyTypeObject cmdpy_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "cmdpy_object" | ) |
int gdbpy_initialize_commands | ( | void | ) |
Definition at line 676 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_user, class_vars, cmdpy_object_type, complete_cst, gdb_module, gdb_pymodule_addobject(), invoke_cst, N_COMPLETERS, name, and no_class.
Referenced by _initialize_python().
char* gdbpy_parse_command_name | ( | const char * | name, |
struct cmd_list_element *** | base_list, | ||
struct cmd_list_element ** | start_list | ||
) |
Definition at line 428 of file py-cmd.c.
References _, CMD_LIST_AMBIGUOUS, len, lookup_cmd_1(), cmd_list_element::prefixlist, xfree(), and xmalloc().
Referenced by cmdpy_init(), and parmpy_init().
PyObject* gdbpy_string_to_argv | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 786 of file py-cmd.c.
References gdb_buildargv(), and Py_DECREF.
|
static |
Definition at line 332 of file py-cmd.c.
References cmdpy_completer_helper(), cmdpy_completer::completer, current_language, do_cleanups(), ensure_python_env(), gdb_py_int_as_long(), gdbpy_is_string(), get_current_arch(), N_COMPLETERS, Py_DECREF, python_string_to_host_string(), and VEC_safe_push.
|
static |
PyTypeObject cmdpy_object_type |
Definition at line 735 of file py-cmd.c.
Referenced by gdbpy_initialize_commands().
|
static |
Definition at line 78 of file py-cmd.c.
Referenced by cmdpy_completer_helper(), and gdbpy_initialize_commands().
|
static |
|
static |
Definition at line 77 of file py-cmd.c.
Referenced by cmdpy_function(), cmdpy_init(), and gdbpy_initialize_commands().