summaryrefslogtreecommitdiffstats
path: root/gdb/ia64-tdep.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2001-08-31 19:58:41 +0000
committerKevin Buettner <kevinb@redhat.com>2001-08-31 19:58:41 +0000
commit902d7086d7f14120417f882db284a3b7be227208 (patch)
tree2066462b50924072c7db7f3ebd5adad10709f950 /gdb/ia64-tdep.c
parent28cfee261d5f36fac430a44609e95fae02e99ebd (diff)
downloadppe42-binutils-902d7086d7f14120417f882db284a3b7be227208.tar.gz
ppe42-binutils-902d7086d7f14120417f882db284a3b7be227208.zip
Don't let a branch unit nop terminate the prologue scan.
Diffstat (limited to 'gdb/ia64-tdep.c')
-rw-r--r--gdb/ia64-tdep.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c
index 2a01809dca..9bbf317572 100644
--- a/gdb/ia64-tdep.c
+++ b/gdb/ia64-tdep.c
@@ -860,10 +860,11 @@ examine_prologue (CORE_ADDR pc, CORE_ADDR lim_pc, struct frame_info *frame)
if (next_pc == 0)
break;
- if (it == B || ((instr & 0x3fLL) != 0LL))
+ if ((it == B && ((instr & 0x1e1f800003f) != 0x04000000000))
+ || ((instr & 0x3fLL) != 0LL))
{
- /* Exit loop upon hitting a branch instruction or a predicated
- instruction. */
+ /* Exit loop upon hitting a non-nop branch instruction
+ or a predicated instruction. */
break;
}
else if (it == I && ((instr & 0x1eff8000000LL) == 0x00188000000LL))
OpenPOWER on IntegriCloud