From 482ca3f5dc86270c4af53efe9cb5d3e36299d13f Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Thu, 24 Feb 2000 23:06:48 +0000 Subject: Shared library, function calling fixes for GNU/Linux PPC port. --- gdb/rs6000-tdep.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/rs6000-tdep.c') 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; -- cgit v1.1