aboutsummaryrefslogtreecommitdiff
path: root/gdb/event-loop.c
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/event-loop.c
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/event-loop.c')
-rw-r--r--gdb/event-loop.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/event-loop.c b/gdb/event-loop.c
index f1eba52..e8cba5d 100644
--- a/gdb/event-loop.c
+++ b/gdb/event-loop.c
@@ -38,6 +38,13 @@
#include "gdb_assert.h"
#include "gdb_select.h"
+/* Tell create_file_handler what events we are interested in.
+ This is used by the select version of the event loop. */
+
+#define GDB_READABLE (1<<1)
+#define GDB_WRITABLE (1<<2)
+#define GDB_EXCEPTION (1<<3)
+
/* Data point to pass to the event handler. */
typedef union event_data
{