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/regcache.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/regcache.c')
-rw-r--r-- | gdb/regcache.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c index 62c0de5..504196d 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -1351,15 +1351,11 @@ read_pc (void) void generic_target_write_pc (CORE_ADDR pc, ptid_t ptid) { -#ifdef PC_REGNUM if (PC_REGNUM >= 0) write_register_pid (PC_REGNUM, pc, ptid); - if (DEPRECATED_NPC_REGNUM >= 0) - write_register_pid (DEPRECATED_NPC_REGNUM, pc + 4, ptid); -#else - internal_error (__FILE__, __LINE__, - "generic_target_write_pc"); -#endif + else + internal_error (__FILE__, __LINE__, + "generic_target_write_pc"); } void |