diff options
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 |