This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: Re-enable gdb prompt when leaving TUI mode
- From: Stephane Carrez <stcarrez at nerim dot fr>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 13 Sep 2002 23:48:37 +0200
- Subject: [PATCH]: Re-enable gdb prompt when leaving TUI mode
Hi!
I committed this patch to fix the disapearance of gdb prompt when we leave
the TUI mode (mainline & 5_3 branch).
Stephane
2002-09-13 Stephane Carrez <stcarrez@nerim.fr>
* tuiIO.c (tui_setup_io): rl_already_prompted must be cleared
when leaving TUI mode so that gdb prompt is displayed.
Index: tuiIO.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiIO.c,v
retrieving revision 1.16
diff -u -p -r1.16 tuiIO.c
--- tuiIO.c 10 Sep 2002 19:59:31 -0000 1.16
+++ tuiIO.c 13 Sep 2002 19:44:21 -0000
@@ -532,7 +532,7 @@ tui_setup_io (int mode)
rl_outstream = tui_old_rl_outstream;
rl_completion_display_matches_hook = 0;
readline_echoing_p = tui_old_readline_echoing_p;
- rl_already_prompted = 1;
+ rl_already_prompted = 0;
/* Save tty for SIGCONT. */
savetty ();