Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Call target_terminal_ours in quit_force
@ 2015-07-27 16:08 Patrick Palka
  2015-07-27 16:12 ` Patrick Palka
  0 siblings, 1 reply; 7+ messages in thread
From: Patrick Palka @ 2015-07-27 16:08 UTC (permalink / raw)
  To: gdb-patches; +Cc: Patrick Palka

We should make sure our terminal settings are in effect before finally
quitting GDB.  Our terminal settings may not be in effect at this point
if we are e.g. quitting due to a SIGTERM.

gdb/ChangeLog:

	* top.c (quit_force): Call target_terminal_ours.
---
 gdb/top.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gdb/top.c b/gdb/top.c
index 1e30b1c..1a31194 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1494,6 +1494,8 @@ quit_force (char *args, int from_tty)
   int exit_code = 0;
   struct qt_args qt;
 
+  target_terminal_ours ();
+
   /* An optional expression may be used to cause gdb to terminate with the 
      value of that expression.  */
   if (args)
-- 
2.5.0.rc2.22.g69b1679.dirty


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-07-28 10:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-27 16:08 [PATCH] Call target_terminal_ours in quit_force Patrick Palka
2015-07-27 16:12 ` Patrick Palka
2015-07-27 16:37   ` Andreas Schwab
2015-07-27 18:23   ` Pedro Alves
2015-07-27 18:49     ` Patrick Palka
2015-07-27 19:12       ` Patrick Palka
2015-07-28 10:41         ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox