diff options
Diffstat (limited to 'gdb/python/py-cmd.c')
-rw-r--r-- | gdb/python/py-cmd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/python/py-cmd.c b/gdb/python/py-cmd.c index 3a4e649..b51b05c 100644 --- a/gdb/python/py-cmd.c +++ b/gdb/python/py-cmd.c @@ -90,7 +90,7 @@ cmdpy_dont_repeat (PyObject *self, PyObject *args) static void cmdpy_destroyer (struct cmd_list_element *self, void *context) { - gdbpy_enter enter_py (get_current_arch (), current_language); + gdbpy_enter enter_py; /* Release our hold on the command object. */ gdbpy_ref<cmdpy_object> cmd ((cmdpy_object *) context); @@ -104,7 +104,7 @@ cmdpy_function (const char *args, int from_tty, cmd_list_element *command) { cmdpy_object *obj = (cmdpy_object *) command->context (); - gdbpy_enter enter_py (get_current_arch (), current_language); + gdbpy_enter enter_py; if (! obj) error (_("Invalid invocation of Python command object.")); @@ -223,7 +223,7 @@ cmdpy_completer_handle_brkchars (struct cmd_list_element *command, completion_tracker &tracker, const char *text, const char *word) { - gdbpy_enter enter_py (get_current_arch (), current_language); + gdbpy_enter enter_py; /* Calling our helper to obtain a reference to the PyObject of the Python function. */ @@ -266,7 +266,7 @@ cmdpy_completer (struct cmd_list_element *command, completion_tracker &tracker, const char *text, const char *word) { - gdbpy_enter enter_py (get_current_arch (), current_language); + gdbpy_enter enter_py; /* Calling our helper to obtain a reference to the PyObject of the Python function. */ |