aboutsummaryrefslogtreecommitdiff
path: root/gdb/dbug-rom.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-05-06 14:31:30 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-05-06 14:31:30 +0000
commitc410a84ca9f4c590dcc494a77d421f5b7019b973 (patch)
tree903b73e81f4805ddd07f4144b846253c131c6423 /gdb/dbug-rom.c
parent468e3d51268b65763ec2df63146968944c8cc607 (diff)
downloadbinutils-c410a84ca9f4c590dcc494a77d421f5b7019b973.zip
binutils-c410a84ca9f4c590dcc494a77d421f5b7019b973.tar.gz
binutils-c410a84ca9f4c590dcc494a77d421f5b7019b973.tar.bz2
* monitor.c (monitor_supply_register): Add REGCACHE parameter, use
it instead of current_regcache. (parse_register_dump): Add REGCACHE parameter, pass it to supply_register callback. (monitor_dump_reg_block): Add REGCACHE parameter, pass it to parse_register_dump. (monitor_dump_regs): Add REGCACHE parameter, pass it to parse_register_dump and dumpregs callback. (monitor_wait): Pass current_regcache to parse_register_dump and monitor_dump_regs. (monitor_fetch_register): Pass current_regcache to monitor_supply_register. (monitor_fetch_registers): Pass current_regcache to monitor_dump_regs. * monitor.h (struct monitor_ops): Add REGCACHE parameter to supply_register and dumpregs callbacks. (monitor_supply_register, monitor_dump_reg_block): Update prototypes. * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass it to monitor_supply_register. * dink32-rom.c (dink32_supply_register): Likewise. * ppcbug-rom.c (ppcbug_supply_register): Likewise. * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE instead of current_regcache.
Diffstat (limited to 'gdb/dbug-rom.c')
-rw-r--r--gdb/dbug-rom.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/dbug-rom.c b/gdb/dbug-rom.c
index a299088..c4f0ef0 100644
--- a/gdb/dbug-rom.c
+++ b/gdb/dbug-rom.c
@@ -38,7 +38,8 @@
static void dbug_open (char *args, int from_tty);
static void
-dbug_supply_register (char *regname, int regnamelen, char *val, int vallen)
+dbug_supply_register (struct regcache *regcache, char *regname,
+ int regnamelen, char *val, int vallen)
{
int regno;
@@ -71,7 +72,7 @@ dbug_supply_register (char *regname, int regnamelen, char *val, int vallen)
return;
}
- monitor_supply_register (regno, val);
+ monitor_supply_register (regcache, regno, val);
}
/* This array of registers needs to match the indexes used by GDB. The