mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 21:03:55 +08:00
* 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.
This commit is contained in:
@ -1,5 +1,12 @@
|
|||||||
2010-05-25 Doug Evans <dje@google.com>
|
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.
|
Add python gdb.GdbError and gdb.string_to_argv.
|
||||||
* NEWS: Document them.
|
* NEWS: Document them.
|
||||||
* python/py-cmd.c (cmdpy_function): Don't print a traceback if
|
* python/py-cmd.c (cmdpy_function): Don't print a traceback if
|
||||||
|
@ -38,6 +38,13 @@
|
|||||||
#include "gdb_assert.h"
|
#include "gdb_assert.h"
|
||||||
#include "gdb_select.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. */
|
/* Data point to pass to the event handler. */
|
||||||
typedef union event_data
|
typedef union event_data
|
||||||
{
|
{
|
||||||
|
@ -88,13 +88,6 @@ typedef enum
|
|||||||
}
|
}
|
||||||
queue_position;
|
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 */
|
/* Exported functions from event-loop.c */
|
||||||
|
|
||||||
extern void start_event_loop (void);
|
extern void start_event_loop (void);
|
||||||
|
@ -303,7 +303,7 @@ tui_deprep_terminal (void)
|
|||||||
/* Read readline output pipe and feed the command window with it.
|
/* Read readline output pipe and feed the command window with it.
|
||||||
Should be removed when readline is clean. */
|
Should be removed when readline is clean. */
|
||||||
static void
|
static void
|
||||||
tui_readline_output (int code, gdb_client_data data)
|
tui_readline_output (int error, gdb_client_data data)
|
||||||
{
|
{
|
||||||
int size;
|
int size;
|
||||||
char buf[256];
|
char buf[256];
|
||||||
@ -657,7 +657,7 @@ tui_getc (FILE *fp)
|
|||||||
|
|
||||||
#ifdef TUI_USE_PIPE_FOR_READLINE
|
#ifdef TUI_USE_PIPE_FOR_READLINE
|
||||||
/* Flush readline output. */
|
/* Flush readline output. */
|
||||||
tui_readline_output (GDB_READABLE, 0);
|
tui_readline_output (0, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ch = wgetch (w);
|
ch = wgetch (w);
|
||||||
|
Reference in New Issue
Block a user