2004-08-05 Andrew Cagney <cagney@gnu.org>

* gdbarch.sh (deprecated_frame_saved_pc): Delete.
	* gdbarch.h, gdbarch.c: Re-generate.
	* regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
	* inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
	* frame.h: Delete deprecated_read_fp from comments.
	* arch-utils.c (deprecated_init_frame_pc_default): Delete.
	* arch-utils.h (deprecated_init_frame_pc_default): Delete.

Index: doc/ChangeLog
2004-08-05  Andrew Cagney  <cagney@gnu.org>

	* gdbint.texinfo (Target Architecture Definition): Delete
	reference to deprecated_read_fp.
This commit is contained in:
Andrew Cagney
2004-08-05 14:12:40 +00:00
parent 92868b6eba
commit 9c8dbfa937
11 changed files with 28 additions and 127 deletions

View File

@ -1066,19 +1066,18 @@ regcache_raw_collect (const struct regcache *regcache, int regnum, void *buf)
}
/* read_pc, write_pc, read_sp, deprecated_read_fp, etc. Special
handling for registers PC, SP, and FP. */
/* read_pc, write_pc, read_sp, etc. Special handling for registers
PC, SP, and FP. */
/* NOTE: cagney/2001-02-18: The functions read_pc_pid(), read_pc(),
read_sp(), and deprecated_read_fp(), will eventually be replaced by
per-frame methods. Instead of relying on the global INFERIOR_PTID,
they will use the contextual information provided by the FRAME.
These functions do not belong in the register cache. */
/* NOTE: cagney/2001-02-18: The functions read_pc_pid(), read_pc() and
read_sp(), will eventually be replaced by per-frame methods.
Instead of relying on the global INFERIOR_PTID, they will use the
contextual information provided by the FRAME. These functions do
not belong in the register cache. */
/* NOTE: cagney/2003-06-07: The functions generic_target_write_pc(),
write_pc_pid(), write_pc(), and deprecated_read_fp(), all need to
be replaced by something that does not rely on global state. But
what? */
write_pc_pid() and write_pc(), all need to be replaced by something
that does not rely on global state. But what? */
CORE_ADDR
read_pc_pid (ptid_t ptid)
@ -1157,22 +1156,6 @@ read_sp (void)
internal_error (__FILE__, __LINE__, "read_sp: Unable to find SP");
}
void
deprecated_write_sp (CORE_ADDR val)
{
gdb_assert (SP_REGNUM >= 0);
write_register (SP_REGNUM, val);
}
CORE_ADDR
deprecated_read_fp (void)
{
if (DEPRECATED_FP_REGNUM >= 0)
return read_register (DEPRECATED_FP_REGNUM);
else
internal_error (__FILE__, __LINE__, "deprecated_read_fp");
}
static void
reg_flush_command (char *command, int from_tty)
{