* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include "serial.h"
+
struct rom_cmd_data {
char *cmd; /* command to send */
char *delim; /* the delimiter */
char *dump_registers; /* Command to dump all regs at once */
char *register_pattern; /* Pattern that picks out register from reg dump */
void (*supply_register) PARAMS ((char *name, int namelen, char *val, int vallen));
+ void (*load_routine) PARAMS ((serial_t desc, char *file, int hashmark)); /* Download routine */
char *load; /* load command */
char *loadresp; /* Response to load command */
char *prompt; /* monitor command prompt */
- char *cmd_delim; /* end-of-command delimitor */
+ char *line_term; /* end-of-command delimitor */
char *cmd_end; /* optional command terminator */
struct target_ops *target; /* target operations */
- char **loadtypes; /* the load types that are supported */
- char **loadprotos; /* the load protocols that are supported */
- char *baudrates; /* supported baud rates */
int stopbits; /* number of stop bits */
char **regnames; /* array of register names in ascii */
int magic; /* Check value */
matically supply register dump when
coming back after a continue. */
#define MO_GETMEM_NEEDS_RANGE 0x8 /* getmem needs start addr and end addr */
+#define MO_GETMEM_READ_SINGLE 0x10 /* getmem can only read one loc at a time */
extern struct monitor_ops *current_monitor;
extern void monitor_open PARAMS ((char *args, struct monitor_ops *ops, int from_tty));
extern char *monitor_supply_register PARAMS ((int regno, char *valstr));
+extern int monitor_expect PARAMS ((char *prompt, char *buf, int buflen));
+extern int monitor_expect_prompt PARAMS ((char *buf, int buflen));
+extern void monitor_printf PARAMS ((char *, ...))
+ ATTR_FORMAT(printf, 1, 2);
+extern void monitor_printf_noecho PARAMS ((char *, ...))
+ ATTR_FORMAT(printf, 1, 2);
+extern void init_monitor_ops PARAMS ((struct target_ops *));