aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1994-10-22 10:48:30 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1994-10-22 10:48:30 +0000
commitd298568482ac94bbb309d1d7f9af90c094b50ded (patch)
tree599341e082f145d5517ae0dbe11206264eac21d1 /gdb/rs6000-tdep.c
parent82e683ab389c6a8d5c3bed0eafcba4a019b365ab (diff)
downloadgdb-d298568482ac94bbb309d1d7f9af90c094b50ded.zip
gdb-d298568482ac94bbb309d1d7f9af90c094b50ded.tar.gz
gdb-d298568482ac94bbb309d1d7f9af90c094b50ded.tar.bz2
* valarith.c (value_binop): Take care of ANSI `value preserving'
rule, which was not addressed by the previous change. * rs6000-tdep.c (skip_prologue): Handle `mr r31,r1', which is generated by gcc-2.6, as a synonym for `oril r31,r1,0'. * TODO: Remove item about RS/6000 shared libraries.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 757e111..18fe4e9 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -244,7 +244,8 @@ CORE_ADDR pc;
op = read_memory_integer (pc, 4);
}
- if (op == 0x603f0000) { /* oril r31, r1, 0x0 */
+ if (op == 0x603f0000 /* oril r31, r1, 0x0 */
+ || op == 0x7c3f0b78) { /* mr r31, r1 */
pc += 4; /* this happens if r31 is used as */
op = read_memory_integer (pc, 4); /* frame ptr. (gcc does that) */