diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-09 18:16:00 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-09 18:16:00 +0000 |
commit | e76e7474e6bb2e461518c29798fd6693a076dfa9 (patch) | |
tree | 108a0371c6a90c3f76d087f1425a76b67f10c21b | |
parent | d4f91178beb5f73b71c52ba7e563c188f65fa071 (diff) | |
download | gdb-e76e7474e6bb2e461518c29798fd6693a076dfa9.zip gdb-e76e7474e6bb2e461518c29798fd6693a076dfa9.tar.gz gdb-e76e7474e6bb2e461518c29798fd6693a076dfa9.tar.bz2 |
2007-10-09 Markus Deuling <deuling@de.ibm.com>
* dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
the current architecture by regcache.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dbug-rom.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e393480..f4380b6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2007-10-09 Markus Deuling <deuling@de.ibm.com> + * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at + the current architecture by regcache. + +2007-10-09 Markus Deuling <deuling@de.ibm.com> + * arch-utils.c (legacy_return_value): Replace current_gdbarch by gdbarch. diff --git a/gdb/dbug-rom.c b/gdb/dbug-rom.c index c4f2557..b8e1030 100644 --- a/gdb/dbug-rom.c +++ b/gdb/dbug-rom.c @@ -40,6 +40,7 @@ dbug_supply_register (struct regcache *regcache, char *regname, int regnamelen, char *val, int vallen) { int regno; + struct gdbarch *gdbarch = get_regcache_arch (regcache); if (regnamelen != 2) return; @@ -49,12 +50,12 @@ dbug_supply_register (struct regcache *regcache, char *regname, case 'S': if (regname[1] != 'R') return; - regno = gdbarch_ps_regnum (current_gdbarch); + regno = gdbarch_ps_regnum (gdbarch); break; case 'P': if (regname[1] != 'C') return; - regno = gdbarch_pc_regnum (current_gdbarch); + regno = gdbarch_pc_regnum (gdbarch); break; case 'D': if (regname[1] < '0' || regname[1] > '7') |