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 | |
parent | e38c262f357690271e9fa3a5d94909d17ee80865 (diff) | |
download | binutils-caaa79ad8928c84d7fa86da4307c58b38e33ff48.zip binutils-caaa79ad8928c84d7fa86da4307c58b38e33ff48.tar.gz binutils-caaa79ad8928c84d7fa86da4307c58b38e33ff48.tar.bz2 |
* sentinel-frame.c (sentinel_frame_prev_register): Do not call
register_offset_hack anymore.
* regcache.{c,h} (register_offset_hack): Remove.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/regcache.c | 12 | ||||
-rw-r--r-- | gdb/regcache.h | 12 | ||||
-rw-r--r-- | gdb/sentinel-frame.c | 2 |
4 files changed, 8 insertions, 25 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e85ffc2..7ad240e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2008-02-18 Markus Deuling <deuling@de.ibm.com> + * sentinel-frame.c (sentinel_frame_prev_register): Do not call + register_offset_hack anymore. + + * regcache.{c,h} (register_offset_hack): Remove. + +2008-02-18 Markus Deuling <deuling@de.ibm.com> + * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter. * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace 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 diff --git a/gdb/regcache.h b/gdb/regcache.h index 48edf53..1e4ee86 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -104,18 +104,6 @@ extern void regcache_raw_collect (const struct regcache *regcache, int regnum, void *buf); -/* The register's ``offset''. - - FIXME: cagney/2002-11-07: The frame_register() function, when - specifying the real location of a register, does so using that - registers offset in the register cache. That offset is then used - by valops.c to determine the location of the register. The code - should instead use the register's number and a location expression - to describe a value spread across multiple registers or memory. */ - -extern int register_offset_hack (struct gdbarch *gdbarch, int regnum); - - /* The type of a register. This function is slightly more efficient then its gdbarch vector counterpart since it returns a precomputed value stored in a table. */ diff --git a/gdb/sentinel-frame.c b/gdb/sentinel-frame.c index bf199f5..ccf0359 100644 --- a/gdb/sentinel-frame.c +++ b/gdb/sentinel-frame.c @@ -54,7 +54,7 @@ sentinel_frame_prev_register (struct frame_info *next_frame, onto the corresponding hardware register. */ *optimized = 0; *lvalp = lval_register; - *addrp = register_offset_hack (current_gdbarch, regnum); + *addrp = 0; *realnum = regnum; /* If needed, find and return the value of the register. */ |