diff options
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r-- | gdb/python/python.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index 1a0562a..c16305b 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1745,6 +1745,9 @@ do_start_initialization () #endif /* HAVE_PYTHON */ +/* See python.h. */ +cmd_list_element *python_cmd_element = nullptr; + void _initialize_python (void) { @@ -1774,7 +1777,7 @@ This command is only a placeholder.") ); add_com_alias ("pi", "python-interactive", class_obscure, 1); - add_com ("python", class_obscure, python_command, + python_cmd_element = add_com ("python", class_obscure, python_command, #ifdef HAVE_PYTHON _("\ Evaluate a Python command.\n\ |