diff options
author | Stu Grossman <grossman@cygnus> | 1995-04-17 06:31:39 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1995-04-17 06:31:39 +0000 |
commit | 5de0c6486d2a61d7b3b41a130feb546f936473ee (patch) | |
tree | cacd2ebe2e17709e6421a51a8aeb17cf6f05d4bc /gdb/monitor.h | |
parent | 9ce0322db8511a64d7a8e44da3fa8e6271b1cb2a (diff) | |
download | gdb-5de0c6486d2a61d7b3b41a130feb546f936473ee.zip gdb-5de0c6486d2a61d7b3b41a130feb546f936473ee.tar.gz gdb-5de0c6486d2a61d7b3b41a130feb546f936473ee.tar.bz2 |
* monitor.c: Move all xmodem stuff into xmodem.[ch]. Remove
unnecessary remoteloadprotocol and remoteloadtype support.
* (expect expect_prompt): Change names to monitor_expect and
monitor_expect_prompt. Make them global.
* (printf_monitor): Change name to monitor_printf. Make global.
* (monitor_read_memory): Flush command echo to avoid parsing
ambiguity with CPU32Bug monitor.
* (monitor_load): Remove remoteloadprotocol and remoteloadtype
support. Call target_ops->load_routine, default to
monitor_load_srec.
* (monitor_load_srec): Remove everything but S-record support.
* monitor.h (monitor_ops): Add load_routine to provide monitor
specific download capability.
* remote-est.c: Clean up copyrights and comments.
* w89k-rom.c: Use new xmodem support.
* xmodem.c xmodem.h: New files to support xmodem downloads.
* rom68k-rom.c remote-est.c: Fix copyrights, add load_routine
entry to monitor_ops.
* cpu32bug-rom.c: New file to support Moto BCC debuggers.
* config/m68k/est.mt (TDEPFILES): Add cpu32bug.o.
* config/pa/hppapro.mt (TDEPFILES): Add xmodem.o.
Diffstat (limited to 'gdb/monitor.h')
-rw-r--r-- | gdb/monitor.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gdb/monitor.h b/gdb/monitor.h index e752345..d4e9962 100644 --- a/gdb/monitor.h +++ b/gdb/monitor.h @@ -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,6 +100,7 @@ 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 */ @@ -167,8 +170,9 @@ extern struct monitor_ops *current_monitor; #define MEM_DIS_CMD (current_monitor->getmem) #define REG_DELIM (current_monitor->regset.delim) +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 (); extern void init_monitor_ops PARAMS ((struct target_ops *)); - -extern void monitor_open PARAMS ((char *, struct monitor_ops *, int)); - -extern char *monitor_supply_register PARAMS ((int, char *)); |