aboutsummaryrefslogtreecommitdiff
path: root/gdb/w89k-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/w89k-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/w89k-rom.c')
-rw-r--r--gdb/w89k-rom.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/gdb/w89k-rom.c b/gdb/w89k-rom.c
index e2536f8..64bc5fad 100644
--- a/gdb/w89k-rom.c
+++ b/gdb/w89k-rom.c
@@ -59,14 +59,15 @@ static char *w89k_regnames[] = {
* strings. We also need a CR or LF on the end.
*/
-struct target_ops w89k_ops = {
+static struct target_ops w89k_ops =
+{
"w89k",
"WinBond's debug monitor for the W89k Eval board",
"Debug on a WinBond W89K eval board.\n\
Specify the serial device it is connected to (e.g. /dev/ttya).",
w89k_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 w89k_cmds = {
+static char *loadtypes[] = {"none", "srec", "default", NULL};
+static char *loadprotos[] = {"none", "xmodem", NULL};
+
+static struct monitor_ops w89k_cmds =
+{
1, /* 1 for ASCII, 0 for binary */
"\n", /* monitor init string */
"g = %x\n", /* execute or usually GO command */
@@ -136,10 +141,10 @@ struct monitor_ops w89k_cmds = {
"", /* end-of-command delimitor */
"", /* optional command terminator */
&w89k_ops, /* target operations */
- "none,srec,default", /* load types */
- "none,xmodem", /* load protocols */
+ w89k_loadtypes, /* loadtypes */
+ w89k_loadprotos, /* loadprotos */
"9600", /* supported baud rates */
- 1, /* number of stop bits */
+ SERIAL_1_STOPBITS, /* number of stop bits */
w89k_regnames /* registers names */
};
@@ -148,10 +153,7 @@ w89k_open(args, from_tty)
char *args;
int from_tty;
{
- target_preopen(from_tty);
- push_target (&w89k_ops);
- push_monitor (&w89k_cmds);
- monitor_open (args, "w89k", from_tty);
+ monitor_open (args, &w89k_cmds, from_tty);
}
void