From 51d6a9540465aae6001f0feb8d190897978c89c1 Mon Sep 17 00:00:00 2001 From: Rob Savoye Date: Tue, 11 Oct 1994 04:37:18 +0000 Subject: Memory_reads_inferior() and monitor_fetch_registers() now work good on both targets. On to the "set" functions... --- gdb/op50-rom.c | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'gdb/op50-rom.c') 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 */ -- cgit v1.1