aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-02-24 23:06:48 +0000
committerKevin Buettner <kevinb@redhat.com>2000-02-24 23:06:48 +0000
commit482ca3f5dc86270c4af53efe9cb5d3e36299d13f (patch)
treedfa4153972cd2ab4eb7f6d75c85417dc131a01ab /gdb/rs6000-tdep.c
parent60f036a265ffa98d6618546fe1725af1f79b653b (diff)
downloadgdb-482ca3f5dc86270c4af53efe9cb5d3e36299d13f.zip
gdb-482ca3f5dc86270c4af53efe9cb5d3e36299d13f.tar.gz
gdb-482ca3f5dc86270c4af53efe9cb5d3e36299d13f.tar.bz2
Shared library, function calling fixes for GNU/Linux PPC port.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 29ca4ca..ca094c7 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -313,8 +313,8 @@ skip_prologue (pc, fdata)
char buf[4];
unsigned long op;
long offset = 0;
- int lr_reg = 0;
- int cr_reg = 0;
+ int lr_reg = -1;
+ int cr_reg = -1;
int reg;
int framep = 0;
int minimal_toc_loaded = 0;
@@ -391,7 +391,7 @@ skip_prologue (pc, fdata)
continue;
}
- else if ((op & 0xffff0000) == lr_reg)
+ else if (lr_reg != -1 && (op & 0xffff0000) == lr_reg)
{ /* st Rx,NUM(r1)
where Rx == lr */
fdata->lr_offset = SIGNED_SHORT (op) + offset;
@@ -400,7 +400,7 @@ skip_prologue (pc, fdata)
continue;
}
- else if ((op & 0xffff0000) == cr_reg)
+ else if (cr_reg != -1 && (op & 0xffff0000) == cr_reg)
{ /* st Rx,NUM(r1)
where Rx == cr */
fdata->cr_offset = SIGNED_SHORT (op) + offset;