diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-01-17 18:24:15 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-01-17 18:24:15 +0000 |
commit | afb18d0f3dcc99608b41b805fea3526653cee1e3 (patch) | |
tree | aba70ff4892c8c745208b8a29a297fbd0de92f10 /gdb/gdbarch.c | |
parent | a698f53eb944ed6e48c6f14987ae99d8de99ab1a (diff) | |
download | gdb-afb18d0f3dcc99608b41b805fea3526653cee1e3.zip gdb-afb18d0f3dcc99608b41b805fea3526653cee1e3.tar.gz gdb-afb18d0f3dcc99608b41b805fea3526653cee1e3.tar.bz2 |
2004-01-17 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
* gdbarch.h, gdbarch.c: Re-generate.
* procfs.c (procfs_fetch_registers): Delete reference to
DEPRECATED_NPC_REGNUM.
(procfs_store_registers): Ditto.
* regcache.c (generic_target_write_pc): Simplify.
* lynx-nat.c: Delete #ifdef SPARC code. Not used.
Index: doc/ChangeLog
2004-01-17 Andrew Cagney <cagney@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Delete
documentation on DEPRECATED_NPC_REGNUM.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r-- | gdb/gdbarch.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 0acb14c..ff32f77 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -137,7 +137,6 @@ struct gdbarch int pc_regnum; int ps_regnum; int fp0_regnum; - int deprecated_npc_regnum; gdbarch_stab_reg_to_regnum_ftype *stab_reg_to_regnum; gdbarch_ecoff_reg_to_regnum_ftype *ecoff_reg_to_regnum; gdbarch_dwarf_reg_to_regnum_ftype *dwarf_reg_to_regnum; @@ -310,7 +309,6 @@ struct gdbarch startup_gdbarch = -1, /* pc_regnum */ -1, /* ps_regnum */ 0, /* fp0_regnum */ - 0, /* deprecated_npc_regnum */ 0, /* stab_reg_to_regnum */ 0, /* ecoff_reg_to_regnum */ 0, /* dwarf_reg_to_regnum */ @@ -493,7 +491,6 @@ gdbarch_alloc (const struct gdbarch_info *info, current_gdbarch->pc_regnum = -1; current_gdbarch->ps_regnum = -1; current_gdbarch->fp0_regnum = -1; - current_gdbarch->deprecated_npc_regnum = -1; current_gdbarch->stab_reg_to_regnum = no_op_reg_to_regnum; current_gdbarch->ecoff_reg_to_regnum = no_op_reg_to_regnum; current_gdbarch->dwarf_reg_to_regnum = no_op_reg_to_regnum; @@ -630,7 +627,6 @@ verify_gdbarch (struct gdbarch *current_gdbarch) /* Skip verify of pc_regnum, invalid_p == 0 */ /* Skip verify of ps_regnum, invalid_p == 0 */ /* Skip verify of fp0_regnum, invalid_p == 0 */ - /* Skip verify of deprecated_npc_regnum, invalid_p == 0 */ /* Skip verify of stab_reg_to_regnum, invalid_p == 0 */ /* Skip verify of ecoff_reg_to_regnum, invalid_p == 0 */ /* Skip verify of dwarf_reg_to_regnum, invalid_p == 0 */ @@ -1370,14 +1366,6 @@ gdbarch_dump (struct gdbarch *current_gdbarch, struct ui_file *file) "gdbarch_dump: DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE = %d\n", DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE); #endif -#ifdef DEPRECATED_NPC_REGNUM - fprintf_unfiltered (file, - "gdbarch_dump: DEPRECATED_NPC_REGNUM # %s\n", - XSTRING (DEPRECATED_NPC_REGNUM)); - fprintf_unfiltered (file, - "gdbarch_dump: DEPRECATED_NPC_REGNUM = %d\n", - DEPRECATED_NPC_REGNUM); -#endif #ifdef DEPRECATED_PC_IN_CALL_DUMMY_P fprintf_unfiltered (file, "gdbarch_dump: %s # %s\n", @@ -2987,23 +2975,6 @@ set_gdbarch_fp0_regnum (struct gdbarch *gdbarch, } int -gdbarch_deprecated_npc_regnum (struct gdbarch *gdbarch) -{ - gdb_assert (gdbarch != NULL); - /* Skip verify of deprecated_npc_regnum, invalid_p == 0 */ - if (gdbarch_debug >= 2) - fprintf_unfiltered (gdb_stdlog, "gdbarch_deprecated_npc_regnum called\n"); - return gdbarch->deprecated_npc_regnum; -} - -void -set_gdbarch_deprecated_npc_regnum (struct gdbarch *gdbarch, - int deprecated_npc_regnum) -{ - gdbarch->deprecated_npc_regnum = deprecated_npc_regnum; -} - -int gdbarch_stab_reg_to_regnum (struct gdbarch *gdbarch, int stab_regnr) { gdb_assert (gdbarch != NULL); |