aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-06-07 22:38:56 +0000
committerAndrew Cagney <cagney@redhat.com>2003-06-07 22:38:56 +0000
commitb46e02f67c909205abc6b82e963bfd46cabcea4f (patch)
tree0025cd0f3d528b2151c4c01f3117f9ffea584f16 /gdb/regcache.c
parenta42e117c796f7be1639be33fa6c8b7810f018180 (diff)
downloadgdb-b46e02f67c909205abc6b82e963bfd46cabcea4f.zip
gdb-b46e02f67c909205abc6b82e963bfd46cabcea4f.tar.gz
gdb-b46e02f67c909205abc6b82e963bfd46cabcea4f.tar.bz2
2003-06-07 Andrew Cagney <cagney@redhat.com>
* inferior.h (deprecated_write_sp): Replace generic_target_write_sp. * regcache.c (deprecated_write_sp): Replace generic_target_write_sp. * xstormy16-tdep.c (xstormy16_gdbarch_init): Update. * vax-tdep.c (vax_gdbarch_init): Update. * v850-tdep.c (v850_gdbarch_init): Update. * sparc-tdep.c (sparc_gdbarch_init): Update. * sh-tdep.c (sh_gdbarch_init): Update. * s390-tdep.c (s390_gdbarch_init): Update. * rs6000-tdep.c (rs6000_gdbarch_init): Update. * ns32k-tdep.c (ns32k_gdbarch_init): Update. * mn10300-tdep.c (mn10300_gdbarch_init): Update. * mcore-tdep.c (mcore_gdbarch_init): Update. * m68k-tdep.c (m68k_gdbarch_init): Update. * m68hc11-tdep.c (m68hc11_gdbarch_init): Update. * ia64-tdep.c (ia64_gdbarch_init): Update. * h8300-tdep.c (h8300_gdbarch_init): Update. * frv-tdep.c (frv_gdbarch_init): Update. * cris-tdep.c (cris_gdbarch_init): Update. * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 2d3c987..6bb62f0 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -1273,9 +1273,6 @@ regcache_collect (int regnum, void *buf)
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 function generic_target_write_sp()
- should be deleted. */
-
/* 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
@@ -1361,17 +1358,10 @@ read_sp (void)
}
void
-generic_target_write_sp (CORE_ADDR val)
+deprecated_write_sp (CORE_ADDR val)
{
-#ifdef SP_REGNUM
- if (SP_REGNUM >= 0)
- {
- write_register (SP_REGNUM, val);
- return;
- }
-#endif
- internal_error (__FILE__, __LINE__,
- "generic_target_write_sp");
+ gdb_assert (SP_REGNUM >= 0);
+ write_register (SP_REGNUM, val);
}
CORE_ADDR