aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-05-25 15:48:44 +0000
committerDoug Evans <dje@google.com>2010-05-25 15:48:44 +0000
commit01f69b386b461447a7135401002856d67103418d (patch)
tree9958f1b1c885410f684c8380339ce73a85b2b533 /gdb/tui
parentd19e70fbfa8a3f5bbf8f0447f740fcbc0bd9ce23 (diff)
downloadfsf-binutils-gdb-01f69b386b461447a7135401002856d67103418d.zip
fsf-binutils-gdb-01f69b386b461447a7135401002856d67103418d.tar.gz
fsf-binutils-gdb-01f69b386b461447a7135401002856d67103418d.tar.bz2
* event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
* event-loop.c: ... here. * tui/tui-io.c (tui_readline_output): Rename parameter `code' to `error' for clarity. (tui_getc): Pass correct value for `error' parameter to tui_readline_output.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c
index ad455fa..4370a7e 100644
--- a/gdb/tui/tui-io.c
+++ b/gdb/tui/tui-io.c
@@ -303,7 +303,7 @@ tui_deprep_terminal (void)
/* Read readline output pipe and feed the command window with it.
Should be removed when readline is clean. */
static void
-tui_readline_output (int code, gdb_client_data data)
+tui_readline_output (int error, gdb_client_data data)
{
int size;
char buf[256];
@@ -657,7 +657,7 @@ tui_getc (FILE *fp)
#ifdef TUI_USE_PIPE_FOR_READLINE
/* Flush readline output. */
- tui_readline_output (GDB_READABLE, 0);
+ tui_readline_output (0, 0);
#endif
ch = wgetch (w);