* inftarg.c (child_thread_alive): New function to see if a
[deliverable/binutils-gdb.git] / gdb / monitor.h
index 6d8ae486f87e5e8379a1f1d1ced5b511c2f6e1a3..85de892c2848814e10c1b5fd12bc61d952352f97 100644 (file)
@@ -22,6 +22,8 @@
  * 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 */
@@ -98,15 +100,13 @@ struct monitor_ops
   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 */
@@ -126,6 +126,7 @@ struct monitor_ops
                                          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;
 
@@ -169,3 +170,10 @@ 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 *));
This page took 0.023919 seconds and 4 git commands to generate.