mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-24 04:29:49 +00:00
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.
This commit is contained in:
parent
3ce8d851a6
commit
5a5d8ead94
@ -1,3 +1,7 @@
|
||||
2013-09-09 Andrew Burgess <aburgess@broadcom.com>
|
||||
|
||||
* top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
|
||||
|
||||
2013-09-06 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* remote-sim.c (dump_mem, gdbsim_fetch_register)
|
||||
|
15
gdb/top.c
15
gdb/top.c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user