This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Call target_terminal_ours in quit_force
- From: Patrick Palka <patrick at parcs dot ath dot cx>
- To: gdb-patches at sourceware dot org
- Cc: Patrick Palka <patrick at parcs dot ath dot cx>
- Date: Mon, 27 Jul 2015 12:08:19 -0400
- Subject: [PATCH] Call target_terminal_ours in quit_force
- Authentication-results: sourceware.org; auth=none
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