2003-05-02 Andrew Cagney <cagney@redhat.com>

* sentinel-frame.c (sentinel_frame_prev_register): Replace
	REGISTER_BYTE with register_offset_hack.
	* regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
	that REGISTER_BYTE is consistent with the regcache.
	* gdbarch.sh (REGISTER_BYTE): Add a predicate.
	* gdbarch.h, gdbarch.c: Regenerate.
This commit is contained in:
Andrew Cagney
2003-05-04 17:34:51 +00:00
parent 54ff590850
commit 46654a5bcc
6 changed files with 73 additions and 12 deletions

View File

@@ -56,7 +56,7 @@ sentinel_frame_prev_register (struct frame_info *next_frame,
onto the corresponding hardware register. */
*optimized = 0;
*lvalp = lval_register;
*addrp = REGISTER_BYTE (regnum);
*addrp = register_offset_hack (current_gdbarch, regnum);
*realnum = regnum;
/* If needed, find and return the value of the register. */