From 902d7086d7f14120417f882db284a3b7be227208 Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Fri, 31 Aug 2001 19:58:41 +0000 Subject: [PATCH] Don't let a branch unit nop terminate the prologue scan. --- gdb/ChangeLog | 5 +++++ gdb/ia64-tdep.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2685dd2666c..f36ef5ad8bf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-08-31 Kevin Buettner + + * ia64-tdep.c (examine_prologue): Don't let a branch unit nop + terminate the prologue scan. + 2001-08-30 Jim Blandy * symfile.c (sections_overlap): New function. diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index 2a01809dca6..9bbf3175726 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)) -- 2.30.2