aboutsummaryrefslogtreecommitdiff
path: root/gdb/op50-rom.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1995-03-07 09:26:39 +0000
committerStu Grossman <grossman@cygnus>1995-03-07 09:26:39 +0000
commit1265e2d82361cdf254aade96eb9840d81a36a8fd (patch)
treef4967a7af882294dd7fbe48b25beea9dc63c6e1f /gdb/op50-rom.c
parent09374c9863316b51b7e44ce94a5b89706b107e66 (diff)
downloadgdb-1265e2d82361cdf254aade96eb9840d81a36a8fd.zip
gdb-1265e2d82361cdf254aade96eb9840d81a36a8fd.tar.gz
gdb-1265e2d82361cdf254aade96eb9840d81a36a8fd.tar.bz2
* Makefile.in: Add rules for monitor.o and rom68k-rom.o to make
Sun make (with VPATH) work... * monitor.c monitor.h rom68k-rom.c: Serious cleanup to make IDP (rom68k) target work right. * array-rom.c op50-rom.c w89k-rom.c: Partial updates to new monitor.c interface. More work needs to be done here. * config/m68k/tm-monitor.h: Change DECR_PC_AFTER_BREAK to 0 to match the IDP monitor. Also, set NUM_REGS to 18 cuz there's no floating-point for this card.
Diffstat (limited to 'gdb/op50-rom.c')
-rw-r--r--gdb/op50-rom.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/gdb/op50-rom.c b/gdb/op50-rom.c
index c6a3276..5d3b228 100644
--- a/gdb/op50-rom.c
+++ b/gdb/op50-rom.c
@@ -58,7 +58,8 @@ static char *op50n_regnames[] = {
* strings. We also need a CR or LF on the end.
*/
-struct target_ops op50n_ops = {
+static struct target_ops op50n_ops =
+{
"op50n",
"Oki's debug monitor for the Op50n Eval board",
@@ -66,7 +67,7 @@ struct target_ops op50n_ops = {
Specify the serial device it is connected to (e.g. /dev/ttya).",
op50n_open,
monitor_close,
- monitor_attach,
+ NULL,
monitor_detach,
monitor_resume,
monitor_wait,
@@ -102,7 +103,11 @@ Specify the serial device it is connected to (e.g. /dev/ttya).",
OPS_MAGIC, /* Always the last thing */
};
-struct monitor_ops op50n_cmds = {
+static char *op50n_loadtype[] = {"none", "srec", "default", NULL};
+static char *op50n_loadprotos[] = {"none", NULL};
+
+static struct monitor_ops op50n_cmds =
+{
1, /* 1 for ASCII, 0 for binary */
"\003.\n", /* monitor init string */
"g %x\n", /* execute or usually GO command */
@@ -136,10 +141,10 @@ struct monitor_ops op50n_cmds = {
" ", /* end-of-command delimitor */
".\n", /* optional command terminator */
&op50n_ops, /* target operations */
- "none,srec,default", /* load types */
- "none", /* load types */
+ op50n_loadtypes, /* loadtypes */
+ op50n_loadprotos, /* loadprotos */
"2400,4800,9600,19200,exta,38400,extb", /* supported baud rates */
- 1, /* number of stop bits */
+ SERIAL_1_STOPBITS, /* number of stop bits */
op50n_regnames
};
@@ -148,10 +153,7 @@ op50n_open(args, from_tty)
char *args;
int from_tty;
{
- target_preopen(from_tty);
- push_target(&op50n_ops);
- push_monitor (&op50n_cmds);
- monitor_open (args, "op50n", from_tty);
+ monitor_open (args, &op50n_cmds, from_tty);
}
void