aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-09-17 15:42:21 +0000
committerAndrew Cagney <cagney@redhat.com>2003-09-17 15:42:21 +0000
commitefe59759d8d01aa611222e4d7000e41561945741 (patch)
tree50707fc956000e76f0502a8959764bb99b082cea /gdb/regcache.c
parent627003499ddac21de88a2d00a0062e2f9407dcce (diff)
downloadgdb-efe59759d8d01aa611222e4d7000e41561945741.zip
gdb-efe59759d8d01aa611222e4d7000e41561945741.tar.gz
gdb-efe59759d8d01aa611222e4d7000e41561945741.tar.bz2
2003-09-17 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM. * gdbarch.h, gdbarch.c: Regenerate. * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update. * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update. * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update. * sparcnbsd-tdep.c: Update.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index e29143c..3561d7c 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -1345,8 +1345,8 @@ 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 (NPC_REGNUM >= 0)
- write_register_pid (NPC_REGNUM, pc + 4, ptid);
+ if (DEPRECATED_NPC_REGNUM >= 0)
+ write_register_pid (DEPRECATED_NPC_REGNUM, pc + 4, ptid);
#else
internal_error (__FILE__, __LINE__,
"generic_target_write_pc");