diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-04-29 01:51:51 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-04-29 01:51:51 +0000 |
commit | 81c4a259cde3366e6e8548c6067711ed15735d27 (patch) | |
tree | e1a20af6847bf10b1ff9be671d3902cebe6b9a9e /gdb/regcache.c | |
parent | d8ab3e52595336af1c028461c8c3c1c30c9ebccb (diff) | |
download | fsf-binutils-gdb-81c4a259cde3366e6e8548c6067711ed15735d27.zip fsf-binutils-gdb-81c4a259cde3366e6e8548c6067711ed15735d27.tar.gz fsf-binutils-gdb-81c4a259cde3366e6e8548c6067711ed15735d27.tar.bz2 |
* regcache.c (deprecated_read_register_gen): Remove, inline ...
(read_register): ... here.
(deprecated_write_register_gen): Remove, inline ...
(write_register): ... here.
* regcache.h (deprecated_read_register_gen): Remove prototype.
(deprecated_write_register_gen): Likewise.
* remote-sim.c (gdbsim_store_register): Replace call to
deprecated_read_register_gen with regcache_cooked_read.
* target.c (debug_print_register): Replace calls to
deprecated_read_register_gen and read_register with
regcache_cooked_read.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r-- | gdb/regcache.c | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c index 11810ef..37e4bdc 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -574,14 +574,6 @@ regcache_raw_write_unsigned (struct regcache *regcache, int regnum, } void -deprecated_read_register_gen (int regnum, gdb_byte *buf) -{ - gdb_assert (current_regcache != NULL); - gdb_assert (current_regcache->descr->gdbarch == current_gdbarch); - regcache_cooked_read (current_regcache, regnum, buf); -} - -void regcache_cooked_read (struct regcache *regcache, int regnum, gdb_byte *buf) { gdb_assert (regnum >= 0); @@ -685,14 +677,6 @@ regcache_raw_write (struct regcache *regcache, int regnum, } void -deprecated_write_register_gen (int regnum, gdb_byte *buf) -{ - gdb_assert (current_regcache != NULL); - gdb_assert (current_regcache->descr->gdbarch == current_gdbarch); - regcache_cooked_write (current_regcache, regnum, buf); -} - -void regcache_cooked_write (struct regcache *regcache, int regnum, const gdb_byte *buf) { @@ -806,7 +790,9 @@ ULONGEST read_register (int regnum) { gdb_byte *buf = alloca (register_size (current_gdbarch, regnum)); - deprecated_read_register_gen (regnum, buf); + gdb_assert (current_regcache != NULL); + gdb_assert (current_regcache->descr->gdbarch == current_gdbarch); + regcache_cooked_read (current_regcache, regnum, buf); return (extract_unsigned_integer (buf, register_size (current_gdbarch, regnum))); } @@ -841,7 +827,9 @@ write_register (int regnum, LONGEST val) size = register_size (current_gdbarch, regnum); buf = alloca (size); store_signed_integer (buf, size, (LONGEST) val); - deprecated_write_register_gen (regnum, buf); + gdb_assert (current_regcache != NULL); + gdb_assert (current_regcache->descr->gdbarch == current_gdbarch); + regcache_cooked_write (current_regcache, regnum, buf); } void |