diff options
author | Markus Deuling <deuling@de.ibm.com> | 2008-02-18 16:37:17 +0000 |
---|---|---|
committer | Markus Deuling <deuling@de.ibm.com> | 2008-02-18 16:37:17 +0000 |
commit | caaa79ad8928c84d7fa86da4307c58b38e33ff48 (patch) | |
tree | f7eb3975b5174a47e37031c3362762d45d67fd28 /gdb/regcache.c | |
parent | e38c262f357690271e9fa3a5d94909d17ee80865 (diff) | |
download | gdb-caaa79ad8928c84d7fa86da4307c58b38e33ff48.zip gdb-caaa79ad8928c84d7fa86da4307c58b38e33ff48.tar.gz gdb-caaa79ad8928c84d7fa86da4307c58b38e33ff48.tar.bz2 |
* sentinel-frame.c (sentinel_frame_prev_register): Do not call
register_offset_hack anymore.
* regcache.{c,h} (register_offset_hack): Remove.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r-- | gdb/regcache.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c index f255510..3e54c5f 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -761,18 +761,6 @@ regcache_cooked_write_part (struct regcache *regcache, int regnum, regcache_cooked_read, regcache_cooked_write); } -/* Hack to keep code that view the register buffer as raw bytes - working. */ - -int -register_offset_hack (struct gdbarch *gdbarch, int regnum) -{ - struct regcache_descr *descr = regcache_descr (gdbarch); - gdb_assert (regnum >= 0 && regnum < descr->nr_cooked_registers); - return descr->register_offset[regnum]; -} - - /* Supply register REGNUM, whose contents are stored in BUF, to REGCACHE. */ void |