aboutsummaryrefslogtreecommitdiff
path: root/gdb/op50-rom.c
diff options
context:
space:
mode:
authorRob Savoye <rob@cygnus>1994-10-11 04:37:18 +0000
committerRob Savoye <rob@cygnus>1994-10-11 04:37:18 +0000
commit51d6a9540465aae6001f0feb8d190897978c89c1 (patch)
tree4aea968e1ac720249cf8642ce7954b8c6a10e13b /gdb/op50-rom.c
parentaa400bd2508f9e362400adcc801acd15bc0e17e1 (diff)
downloadgdb-51d6a9540465aae6001f0feb8d190897978c89c1.zip
gdb-51d6a9540465aae6001f0feb8d190897978c89c1.tar.gz
gdb-51d6a9540465aae6001f0feb8d190897978c89c1.tar.bz2
Memory_reads_inferior() and monitor_fetch_registers() now work good on
both targets. On to the "set" functions...
Diffstat (limited to 'gdb/op50-rom.c')
-rw-r--r--gdb/op50-rom.c23
1 files changed, 16 insertions, 7 deletions
diff --git a/gdb/op50-rom.c b/gdb/op50-rom.c
index ea08a26..a805e8f 100644
--- a/gdb/op50-rom.c
+++ b/gdb/op50-rom.c
@@ -44,9 +44,11 @@ static char *op50n_regnames[] = {
struct target_ops op50n_ops = {
"op50n",
"Oki's debug monitor for the Op50n Eval board",
+
"Debug on a Oki OP50N eval board.\n\
Specify the serial device it is connected to (e.g. /dev/ttya).",
op50n_open,
+
monitor_close,
0,
monitor_detach,
@@ -85,18 +87,25 @@ Specify the serial device it is connected to (e.g. /dev/ttya).",
struct monitor_ops op50n_cmds = {
1, /* 1 for ASCII, 0 for binary */
- "\n", /* monitor init string */
+ ".\n", /* monitor init string */
"", /* execute or usually GO command */
"", /* continue command */
"", /* single step */
"", /* set a breakpoint */
"", /* clear a breakpoint */
- "", /* set memory to a value */
- "", /* display memory */
- "", /* prompt memory commands use */
- { /* set a register */
+ {
+ "sx %x %x;.\n", /* set memory */
+ "", /* delimiter */
+ "", /* the result */
+ },
+ {
+ "sx %x\n", /* get memory */
+ ": ", /* delimiter */
+ " ", /* the result */
+ },
+ {
"x %s %x\n", /* set a register */
- "", /* delimiter between registers */
+ "=", /* delimiter between registers */
"", /* the result */
},
{
@@ -104,7 +113,7 @@ struct monitor_ops op50n_cmds = {
"=", /* delimiter between registers */
" ", /* the result */
},
- "r 0\r", /* download command */
+ "r 0\n", /* download command */
"#", /* monitor command prompt */
" ", /* end-of-command delimitor */
".\n", /* optional command terminator */