aboutsummaryrefslogtreecommitdiff
path: root/gdb/monitor.h
diff options
context:
space:
mode:
authorRob Savoye <rob@cygnus>1993-02-14 22:52:02 +0000
committerRob Savoye <rob@cygnus>1993-02-14 22:52:02 +0000
commit054240ecf0fac2eeea4384c4519160440ba521b9 (patch)
treee048257ebfa8c668725ef34588ef04158edc39c6 /gdb/monitor.h
parent21d9662b168bdc8d3fbe54dd55127c0e7188d669 (diff)
downloadgdb-054240ecf0fac2eeea4384c4519160440ba521b9.zip
gdb-054240ecf0fac2eeea4384c4519160440ba521b9.tar.gz
gdb-054240ecf0fac2eeea4384c4519160440ba521b9.tar.bz2
Remote support for the Rom68k monitor and the Motorola Bug monitor. This is
the first attempt at a generic debug monitor support file.
Diffstat (limited to 'gdb/monitor.h')
-rw-r--r--gdb/monitor.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/gdb/monitor.h b/gdb/monitor.h
new file mode 100644
index 0000000..77095d7
--- /dev/null
+++ b/gdb/monitor.h
@@ -0,0 +1,62 @@
+/* Remote debugging interface for ROM68K boot monitor, for GDB.
+ * Copyright 1990, 1991, 1992 Free Software Foundation, Inc.
+ * Contributed by Cygnus Support. Written by Rob Savoye for Cygnus.
+ *
+ * Copyright 1990, 1991, 1992 Free Software Foundation, Inc.
+ * Contributed by Cygnus Support. Written by Rob Savoye for Cygnus.
+ *
+ * This file is part of GDB.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+struct monitor_ops {
+ char *execute; /* execute or usually GO command */
+ char *resume; /* continue command */
+ char *step; /* single step */
+ char *set_break; /* set a breakpoint */
+ char *clr_break; /* clear a breakpoint */
+ char *set_mem; /* set memory to a value */
+ char *dis_mem; /* display memory */
+ char *mem_prompt; /* prompt memory commands use */
+ char *set_reg; /* set a register */
+ char *reg_delim; /* delimiter between registers */
+ char *get_reg; /* read a register */
+ char *load; /* download command */
+ char *prompt; /* monitor command prompt */
+ char *cmd_delim; /* end-of-command delimitor */
+ char *cmd_end; /* optional command terminator */
+};
+
+extern struct monitor_ops *current_monitor;
+
+#define GO_CMD (current_monitor->execute)
+#define CONT_CMD (current_monitor->resume)
+#define STEP_CMD (current_monitor->step)
+#define SET_BREAK_CMD (current_monitor->set_break)
+#define CLR_BREAK_CMD (current_monitor->clr_break)
+#define MEM_SET_CMD (current_monitor->set_mem)
+#define MEM_DIS_CMD (current_monitor->dis_mem)
+#define LOAD_CMD (current_monitor->load)
+#define GET_REG (current_monitor->get_reg)
+#define REG_DELIM (current_monitor->reg_delim)
+#define SET_REG (current_monitor->set_reg)
+#define CMD_END (current_monitor->cmd_end)
+#define CMD_DELIM (current_monitor->cmd_delim)
+#define PROMPT (current_monitor->prompt)
+#define MEM_PROMPT (current_monitor->mem_prompt)
+
+#define push_monitor(x) current_monitor = x;
+