aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-nat.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-02-15 21:17:04 +0000
committerKevin Buettner <kevinb@redhat.com>2000-02-15 21:17:04 +0000
commitf6077098c92bc7d5a4426324319c3a84e57a93a7 (patch)
treea5e7b1c3739a9702881dd80903e7cfcbcd32a623 /gdb/rs6000-nat.c
parent70d5406d75cc3d0dd0d5ee91c354d2909d12b7e9 (diff)
downloadgdb-f6077098c92bc7d5a4426324319c3a84e57a93a7.zip
gdb-f6077098c92bc7d5a4426324319c3a84e57a93a7.tar.gz
gdb-f6077098c92bc7d5a4426324319c3a84e57a93a7.tar.bz2
AIX 4.3 changes.
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r--gdb/rs6000-nat.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c
index d109f33..63fadcf 100644
--- a/gdb/rs6000-nat.c
+++ b/gdb/rs6000-nat.c
@@ -215,6 +215,8 @@ store_inferior_registers (regno)
else if (regno < FP0_REGNUM) /* a GPR */
{
+ if (regno == SP_REGNUM)
+ exec_one_dummy_insn ();
ptrace (PT_WRITE_GPR, inferior_pid, (PTRACE_ARG3_TYPE) regno,
*(int *) &registers[REGISTER_BYTE (regno)], 0);
}
@@ -233,6 +235,11 @@ store_inferior_registers (regno)
*(int *) &registers[REGISTER_BYTE (regno)], 0);
}
+ else if (regno < NUM_REGS)
+ {
+ /* Ignore it. */
+ }
+
else
fprintf_unfiltered (gdb_stderr,
"Gdb error: register no %d not implemented.\n",