* event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
authorDoug Evans <dje@google.com>
Tue, 25 May 2010 15:48:44 +0000 (15:48 +0000)
committerDoug Evans <dje@google.com>
Tue, 25 May 2010 15:48:44 +0000 (15:48 +0000)
* 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.

gdb/ChangeLog
gdb/event-loop.c
gdb/event-loop.h
gdb/tui/tui-io.c

index 23ae0ebe278f2735c5dd597e9d3a8b6011c22dfb..8dac10a7e1a187b005d3776f84cd1da1b55c4e02 100644 (file)
@@ -1,5 +1,12 @@
 2010-05-25  Doug Evans  <dje@google.com>
 
+       * 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.
+
        Add python gdb.GdbError and gdb.string_to_argv.
        * NEWS: Document them.
        * python/py-cmd.c (cmdpy_function): Don't print a traceback if
index f1eba52fa04d2e7db68efd9db8b34fcc389ce724..e8cba5d0ac0b57969af09c3432c8576b016c3254 100644 (file)
 #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
 {
index bdf13e0fe78fab2664766d0d38177f62c3e8c213..9a61d91cdcf13c5101f5d9e4239dbc979440c6af 100644 (file)
@@ -88,13 +88,6 @@ typedef enum
   }
 queue_position;
 
-/* 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)
-
 /* Exported functions from event-loop.c */
 
 extern void start_event_loop (void);
index ad455face4f2784c0b65e57f48d6388c5737d3ea..4370a7e0c0fb3205e12df5031e1b392642723537 100644 (file)
@@ -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);
This page took 0.030747 seconds and 4 git commands to generate.