This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: Use target_terminal_save_ours in TUI
- From: Stephane Carrez <stcarrez at nerim dot fr>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 26 Aug 2002 23:36:41 +0200
- Subject: [PATCH]: Use target_terminal_save_ours in TUI
Hi!
I've committed this patch to use the new target_terminal_save_ours() in TUI.
Stephane
2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
Fix PR gdb/393:
* tui.c (tui_disable): Update gdb's knowledge of its terminal
using target_terminal_save_ours.
(tui_enable): Likewise.
Index: tui.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui.c,v
retrieving revision 1.21
diff -u -p -r1.21 tui.c
--- tui.c 25 Aug 2002 21:44:41 -0000 1.21
+++ tui.c 26 Aug 2002 19:30:27 -0000
@@ -266,6 +266,9 @@ tui_enable (void)
tuiShowFrameInfo (selected_frame);
refresh ();
+
+ /* Update gdb's knowledge of its terminal. */
+ target_terminal_save_ours ();
tui_update_gdb_sizes ();
}
@@ -288,6 +291,9 @@ tui_disable (void)
/* gdb terminal has changed, update gdb internal copy of it
so that terminal management with the inferior works. */
tui_setup_io (0);
+
+ /* Update gdb's knowledge of its terminal. */
+ target_terminal_save_ours ();
tui_version = 0;
tui_active = 0;