diff options
author | Pedro Alves <palves@redhat.com> | 2016-04-12 16:49:31 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-04-12 16:56:15 +0100 |
commit | a149683b0c277279d892c9617233643188a34251 (patch) | |
tree | 6ef62f3a51a073a8a18162f85f6678e67d5d2f43 /gdb/python | |
parent | da1e5f545cdb18a34d36f28350716246bc24958a (diff) | |
download | gdb-a149683b0c277279d892c9617233643188a34251.zip gdb-a149683b0c277279d892c9617233643188a34251.tar.gz gdb-a149683b0c277279d892c9617233643188a34251.tar.bz2 |
Eliminate clear_quit_flag
Nothing calls this anymore.
gdb/ChangeLog:
2016-04-12 Pedro Alves <palves@redhat.com>
* defs.h (clear_quit_flag): Remove declaration.
* extension-priv.h (struct extension_language_ops)
<clear_quit_flag>: Remove field and update comments.
* extension.c (clear_quit_flag): Delete.
* guile/guile.c (guile_extension_ops): Adjust.
* python/python.c (python_extension_ops): Adjust.
(gdbpy_clear_quit_flag): Delete.
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/python.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index 4dff2e6..9c972ec 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -146,7 +146,6 @@ static enum ext_lang_rc gdbpy_apply_type_printers const struct ext_lang_type_printers *, struct type *, char **); static void gdbpy_free_type_printers (const struct extension_language_defn *, struct ext_lang_type_printers *); -static void gdbpy_clear_quit_flag (const struct extension_language_defn *); static void gdbpy_set_quit_flag (const struct extension_language_defn *); static int gdbpy_check_quit_flag (const struct extension_language_defn *); static enum ext_lang_rc gdbpy_before_prompt_hook @@ -184,7 +183,6 @@ const struct extension_language_ops python_extension_ops = gdbpy_breakpoint_has_cond, gdbpy_breakpoint_cond_says_stop, - gdbpy_clear_quit_flag, gdbpy_set_quit_flag, gdbpy_check_quit_flag, @@ -270,15 +268,6 @@ ensure_python_env (struct gdbarch *gdbarch, return make_cleanup (restore_python_env, env); } -/* Clear the quit flag. */ - -static void -gdbpy_clear_quit_flag (const struct extension_language_defn *extlang) -{ - /* This clears the flag as a side effect. */ - PyOS_InterruptOccurred (); -} - /* Set the quit flag. */ static void |