diff options
author | Andrew Burgess <aburgess@broadcom.com> | 2013-09-09 12:13:58 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@broadcom.com> | 2013-09-09 12:13:58 +0000 |
commit | 5a5d8ead9470d24e05f64c39e28e74462794a1ba (patch) | |
tree | 2b21e82bb6f3ca7209818288ac4a81d26ff30b20 /gdb/top.c | |
parent | 3ce8d851a6edcddb5f6fb91add5f7d33abe94c8e (diff) | |
download | gdb-5a5d8ead9470d24e05f64c39e28e74462794a1ba.zip gdb-5a5d8ead9470d24e05f64c39e28e74462794a1ba.tar.gz gdb-5a5d8ead9470d24e05f64c39e28e74462794a1ba.tar.bz2 |
Remove use of deprecated_init_ui_hook from quit_confirm.
https://sourceware.org/ml/gdb-patches/2013-09/msg00224.html
gdb/ChangeLog
* top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -1355,18 +1355,9 @@ quit_confirm (void) stb = mem_fileopen (); old_chain = make_cleanup_ui_file_delete (stb); - /* This is something of a hack. But there's no reliable way to see - if a GUI is running. The `use_windows' variable doesn't cut - it. */ - if (deprecated_init_ui_hook) - fprintf_filtered (stb, _("A debugging session is active.\n" - "Do you still want to close the debugger?")); - else - { - fprintf_filtered (stb, _("A debugging session is active.\n\n")); - iterate_over_inferiors (print_inferior_quit_action, stb); - fprintf_filtered (stb, _("\nQuit anyway? ")); - } + fprintf_filtered (stb, _("A debugging session is active.\n\n")); + iterate_over_inferiors (print_inferior_quit_action, stb); + fprintf_filtered (stb, _("\nQuit anyway? ")); str = ui_file_xstrdup (stb, NULL); make_cleanup (xfree, str); |