aboutsummaryrefslogtreecommitdiff
path: root/gdb/ppcbug-rom.c
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-12-02 01:14:06 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-12-02 01:14:06 +0000
commit98a2c9d2ea514dcd524f66e0a6a273fa6570e3e5 (patch)
tree611087d3c7de528aec52e840ab068a6c0077a48b /gdb/ppcbug-rom.c
parent5be700fd21cf4049747b86fe2d3e0a3da13615d2 (diff)
downloadgdb-98a2c9d2ea514dcd524f66e0a6a273fa6570e3e5.zip
gdb-98a2c9d2ea514dcd524f66e0a6a273fa6570e3e5.tar.gz
gdb-98a2c9d2ea514dcd524f66e0a6a273fa6570e3e5.tar.bz2
Fix typo; some progress in ppcbug support
Diffstat (limited to 'gdb/ppcbug-rom.c')
-rw-r--r--gdb/ppcbug-rom.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/ppcbug-rom.c b/gdb/ppcbug-rom.c
index e20dc63..044d8b3 100644
--- a/gdb/ppcbug-rom.c
+++ b/gdb/ppcbug-rom.c
@@ -40,7 +40,6 @@ ppcbug_supply_register (regname, regnamelen, val, vallen)
if (regnamelen < 2 || regnamelen > 4)
return;
- fprintf_unfiltered(stderr, "ppcbug_supply_register, %.*s = %.*s\n", regnamelen, regname, vallen, val);
switch (regname[0])
{
case 'R':
@@ -134,7 +133,9 @@ static char *ppcbug_inits[] = {"\r", NULL};
static struct monitor_ops ppcbug_cmds =
{
- MO_CLR_BREAK_USES_ADDR,
+ /* use read single because PPCBUG insists on emiting
+ the word in character notation after the hex. */
+ MO_CLR_BREAK_USES_ADDR | MO_GETMEM_READ_SINGLE,
ppcbug_inits, /* Init strings */
"g\r", /* continue command */
"t\r", /* single step */
@@ -153,10 +154,10 @@ static struct monitor_ops ppcbug_cmds =
NULL, /* setreg.term_cmd */
},
{
- "md %x:%x;b\r", /* getmem.cmdb (addr, len) */
- "md %x:%x;b\r", /* getmem.cmdw (addr, len) */
- "md %x:%x;b\r", /* getmem.cmdl (addr, len) */
- NULL, /* getmem.cmdll (addr, len) */
+ "md %x;b\r", /* getmem.cmdb addr */
+ "md %x;h\r", /* getmem.cmdw addr */
+ "md %x;w\r", /* getmem.cmdl addr */
+ "md %x:2;w\r", /* getmem.cmdll addr */
" ", /* getmem.resp_delim */
NULL, /* getmem.term */
NULL, /* getmem.term_cmd */