aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Savoye <rob@cygnus>1995-01-18 19:11:30 +0000
committerRob Savoye <rob@cygnus>1995-01-18 19:11:30 +0000
commit0b0669febd897f7d62a6414d8628ec99c2bfd78d (patch)
treee2dc1f515e09d2289c179049ca0128f6dad1f1e0 /gdb/monitor.h
parentsparc, coff, hash changes (diff)
downloadbinutils-gdb-0b0669febd897f7d62a6414d8628ec99c2bfd78d.tar.gz
binutils-gdb-0b0669febd897f7d62a6414d8628ec99c2bfd78d.tar.bz2
binutils-gdb-0b0669febd897f7d62a6414d8628ec99c2bfd78d.zip
Add GDBPROTO macro for checking the type of protocol.
Diffstat (limited to 'gdb/monitor.h')
-rw-r--r--gdb/monitor.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/monitor.h b/gdb/monitor.h
index aa3fc7032c1..6194ea054cb 100644
--- a/gdb/monitor.h
+++ b/gdb/monitor.h
@@ -29,7 +29,7 @@ struct rom_cmd_data {
};
struct monitor_ops {
- int type; /* 1 is ascii, 0 is binary */
+ int type; /* 1 is ascii, 0 is GDB remote protocol */
char *init; /* initialize to the monitor */
char *execute; /* execute or usually GO command */
char *resume; /* continue command */
@@ -85,6 +85,7 @@ extern struct monitor_ops *current_monitor;
#define push_monitor(x) current_monitor = x;
#define SREC_SIZE 160
+#define GDBPROTO ((current_monitor->type) ? 0: 1)
extern void debuglogs();
extern void monitor_open();
@@ -95,6 +96,8 @@ extern void monitor_resume();
extern int monitor_wait();
extern void monitor_fetch_register();
extern void monitor_store_register();
+extern void monitor_fetch_registers();
+extern void monitor_store_registers();
extern void monitor_prepare_to_store();
extern int monitor_xfer_inferior_memory();
extern void monitor_files_info();