diff options
author | Stu Grossman <grossman@cygnus> | 1995-10-24 21:31:07 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1995-10-24 21:31:07 +0000 |
commit | 283dc598b8ef7d3e0f23933bffc142affda89c21 (patch) | |
tree | b05a3a0659bc39cd8ebfe98d9279c70c74108e9f /gdb/sh3-rom.c | |
parent | da533085e5936fb44ec622153427e1b5907ba645 (diff) | |
download | gdb-283dc598b8ef7d3e0f23933bffc142affda89c21.zip gdb-283dc598b8ef7d3e0f23933bffc142affda89c21.tar.gz gdb-283dc598b8ef7d3e0f23933bffc142affda89c21.tar.bz2 |
* monitor.c (monitor_expect_regexp): Same as monitor_expect, but
with the obvious extension. (monitor_read_memory_single): Use
regexp for getmem.resp_delim because of parsing ambiguities caused
by certain monitors. (monitor_read_memory): Use new regexp stuff
to parse getmem.resp_delim.
* sh3-rom.c: Finish off table. Use new regexp capability for
getmem commands.
Diffstat (limited to 'gdb/sh3-rom.c')
-rw-r--r-- | gdb/sh3-rom.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gdb/sh3-rom.c b/gdb/sh3-rom.c index 2fc3ae1..b52fa5e 100644 --- a/gdb/sh3-rom.c +++ b/gdb/sh3-rom.c @@ -123,7 +123,8 @@ static char *sh3_inits[] = {"\003", NULL}; /* Exits sub-command mode & download static struct monitor_ops sh3_cmds = { - 0, /* flags */ + MO_CLR_BREAK_USES_ADDR + | MO_GETMEM_READ_SINGLE, /* flags */ sh3_inits, /* monitor init string */ "g\r", /* continue command */ "s\r", /* single step */ @@ -142,13 +143,13 @@ static struct monitor_ops sh3_cmds = NULL, /* setreg.term_cmd */ }, { - "d %x@%x;b\r", /* getmem.cmdb (addr, len) */ - "d %x@%x;w\r", /* getmem.cmdw (addr, len) */ - "d %x@%x;l\r", /* getmem.cmdl (addr, len) */ + "m %x\r", /* getmem.cmdb (addr, len) */ + "m %x;w\r", /* getmem.cmdw (addr, len) */ + "m %x;l\r", /* getmem.cmdl (addr, len) */ NULL, /* getmem.cmdll (addr, len) */ - "^[0-9A-F]+ ", /* getmem.resp_delim */ - NULL, /* getmem.term */ - NULL, /* getmem.term_cmd */ + "^ [0-9A-F]+ ", /* getmem.resp_delim */ + "? ", /* getmem.term */ + ".\r", /* getmem.term_cmd */ }, { ".%s %x\r", /* setreg.cmd (name, value) */ @@ -167,7 +168,7 @@ static struct monitor_ops sh3_cmds = "\\(\\w+\\)=\\([0-9a-fA-F]+\\( +[0-9a-fA-F]+\\b\\)*\\)", sh3_supply_register, /* supply_register */ NULL, /* load_routine (defaults to SRECs) */ - "l\r", /* download command */ + "il;s:x\r\006", /* download command */ NULL, /* Load response */ "\n:", /* monitor command prompt */ "\r", /* end-of-line terminator */ |