diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-05-06 14:31:30 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-05-06 14:31:30 +0000 |
commit | c410a84ca9f4c590dcc494a77d421f5b7019b973 (patch) | |
tree | 903b73e81f4805ddd07f4144b846253c131c6423 /gdb/dink32-rom.c | |
parent | 468e3d51268b65763ec2df63146968944c8cc607 (diff) | |
download | fsf-binutils-gdb-c410a84ca9f4c590dcc494a77d421f5b7019b973.zip fsf-binutils-gdb-c410a84ca9f4c590dcc494a77d421f5b7019b973.tar.gz fsf-binutils-gdb-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/dink32-rom.c')
-rw-r--r-- | gdb/dink32-rom.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/dink32-rom.c b/gdb/dink32-rom.c index 26609c6..074d761 100644 --- a/gdb/dink32-rom.c +++ b/gdb/dink32-rom.c @@ -31,7 +31,8 @@ static void dink32_open (char *args, int from_tty); static void -dink32_supply_register (char *regname, int regnamelen, char *val, int vallen) +dink32_supply_register (struct regcache *regcache, char *regname, + int regnamelen, char *val, int vallen) { int regno = 0; @@ -93,7 +94,7 @@ dink32_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 |