[PATCH] Call target_terminal_ours in quit_force

Patrick Palka
2015-07-27T16:08:31Z

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