aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-06-10 16:43:52 +0000
committerJeff Law <law@redhat.com>1994-06-10 16:43:52 +0000
commite9a3cde88977219807b6330978e74bf4f8d80751 (patch)
tree5abf4cdccb84ddb14d9dca3ea906be770d40ea15 /gdb/hppa-tdep.c
parented50a13b4e2cf5994df030d3bf582fe5528fdbf3 (diff)
downloadfsf-binutils-gdb-e9a3cde88977219807b6330978e74bf4f8d80751.zip
fsf-binutils-gdb-e9a3cde88977219807b6330978e74bf4f8d80751.tar.gz
fsf-binutils-gdb-e9a3cde88977219807b6330978e74bf4f8d80751.tar.bz2
* hppa-tdep.c (target_read_pc, target_write_pc): Accept (and
ignore) a PID argument. (hppa_pop_frame): Pass a PID to target_write_pc. * config/pa/tm-hppa.h (TARGET_READ_PC, TARGET_WRITE_PC): Accept and pass through a PID argument. (target_read_pc, target_write_pc): Update prototypes.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r--gdb/hppa-tdep.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index 6a0b7d8..34c4c47 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -1140,7 +1140,7 @@ hppa_pop_frame ()
/* Else use the value in %rp to set the new PC. */
else
- target_write_pc (read_register (RP_REGNUM));
+ target_write_pc (read_register (RP_REGNUM), 0);
write_register (FP_REGNUM, read_memory_integer (fp, 4));
@@ -1373,7 +1373,8 @@ hppa_fix_call_dummy (dummy, pc, fun, nargs, args, type, gcc_p)
/* Get the PC from %r31 if currently in a syscall. Also mask out privilege
bits. */
CORE_ADDR
-target_read_pc ()
+target_read_pc (pid)
+ int pid;
{
int flags = read_register (FLAGS_REGNUM);
@@ -1385,8 +1386,9 @@ target_read_pc ()
/* Write out the PC. If currently in a syscall, then also write the new
PC value into %r31. */
void
-target_write_pc (v)
+target_write_pc (v, pid)
CORE_ADDR v;
+ int pid;
{
int flags = read_register (FLAGS_REGNUM);