aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-08-05 14:12:40 +0000
committerAndrew Cagney <cagney@redhat.com>2004-08-05 14:12:40 +0000
commit9c8dbfa93743cdd33e6502bc2e2359212b742949 (patch)
treeb6619ff5031172c69936d756eee59f7df99de3f0 /gdb/regcache.c
parent92868b6eba6bd5e0f6f88aa2ec219a7cd5cfc3b8 (diff)
downloadgdb-9c8dbfa93743cdd33e6502bc2e2359212b742949.zip
gdb-9c8dbfa93743cdd33e6502bc2e2359212b742949.tar.gz
gdb-9c8dbfa93743cdd33e6502bc2e2359212b742949.tar.bz2
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.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c35
1 files changed, 9 insertions, 26 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 411392c..dd88eb8 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -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)
{