summaryrefslogtreecommitdiff
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
commit04446085db7a2fde4557948e3d02cf99e6b94dfe (patch)
treeed8721fd10a65133d547a6c4fae47678f05b25a6 /gdb/regcache.c
parent4480575bc53201f69e78a62e51fa62f5198c7ce8 (diff)
downloadgdb-04446085db7a2fde4557948e3d02cf99e6b94dfe.tar.gz
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 2d3c987aac6..6bb62f02f1d 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