diff options
author | Mark Alexander <marka@cygnus> | 1998-01-05 23:41:46 +0000 |
---|---|---|
committer | Mark Alexander <marka@cygnus> | 1998-01-05 23:41:46 +0000 |
commit | 352f9e9dc742f6c2bc0f4005c1a3d64c6095863e (patch) | |
tree | ca8266514fbb0edc2a1afb66353894dcb75c2f5b /gdb/monitor.c | |
parent | 7d645eb277ab66b694438d773cfe2b2ea12ddff9 (diff) | |
download | gdb-352f9e9dc742f6c2bc0f4005c1a3d64c6095863e.zip gdb-352f9e9dc742f6c2bc0f4005c1a3d64c6095863e.tar.gz gdb-352f9e9dc742f6c2bc0f4005c1a3d64c6095863e.tar.bz2 |
* monitor.h (MO_PRINT_PROGRAM_OUTPUT): Define.
* monitor.c (monitor_wait): Echo program output.
* dve3900-rom.c (_initialize_r3900_rom): Remove MO_HANDLE_NL flag,
add MO_PRINT_PROGRAM_OUTPUT flag.
Diffstat (limited to 'gdb/monitor.c')
-rw-r--r-- | gdb/monitor.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/monitor.c b/gdb/monitor.c index 97f5a50..1650800 100644 --- a/gdb/monitor.c +++ b/gdb/monitor.c @@ -798,6 +798,16 @@ monitor_wait (pid, status) } while (resp_len < 0); + /* Print any output characters that were preceded by ^O. */ + if (current_monitor->flags & MO_PRINT_PROGRAM_OUTPUT) + { + int i; + + for (i = 0; i < resp_len - 1; i++) + if (buf[i] == 0x0f) + putchar_unfiltered (buf[++i]); + } + signal (SIGINT, ofunc); timeout = old_timeout; |