* monitor.c (monitor_wait): Echo program output.
* dve3900-rom.c (_initialize_r3900_rom): Remove MO_HANDLE_NL flag,
add MO_PRINT_PROGRAM_OUTPUT flag.
+Mon Jan 5 20:21:59 1998 Mark Alexander <marka@cygnus.com>
+
+ * 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.
+
Fri Jan 2 18:48:58 1998 Mark Alexander <marka@cygnus.com>
* configure.in: Double up brackets in shell case pattern.
void
_initialize_r3900_rom ()
{
- r3900_cmds.flags = MO_HANDLE_NL |
- MO_NO_ECHO_ON_OPEN |
+ r3900_cmds.flags = MO_NO_ECHO_ON_OPEN |
MO_ADDR_BITS_REMOVE |
- MO_CLR_BREAK_USES_ADDR;
+ MO_CLR_BREAK_USES_ADDR |
+ MO_PRINT_PROGRAM_OUTPUT;
r3900_cmds.init = r3900_inits;
r3900_cmds.cont = "g\r";
}
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;
#define MO_ADDR_BITS_REMOVE 0x100000
+/* If set, then display target program output if prefixed by ^O. */
+
+#define MO_PRINT_PROGRAM_OUTPUT 0x200000
+
#define SREC_SIZE 160
extern void monitor_open PARAMS ((char *args, struct monitor_ops *ops,