forked from Imagelibrary/binutils-gdb
* 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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user