diff options
author | Kevin Buettner <kevinb@redhat.com> | 2001-08-31 19:58:41 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2001-08-31 19:58:41 +0000 |
commit | d8d7d87024c9ead9dd1ef0a79ee7ec4c5ffa7f12 (patch) | |
tree | e0930b9f44ddbcd0ffc3139d16cb36d1cd0943e4 /gdb/ia64-tdep.c | |
parent | dc37e13e311397315abf0973d487d9a47e261003 (diff) | |
download | gdb-d8d7d87024c9ead9dd1ef0a79ee7ec4c5ffa7f12.tar.gz |
Don't let a branch unit nop terminate the prologue scan.
Diffstat (limited to 'gdb/ia64-tdep.c')
-rw-r--r-- | gdb/ia64-tdep.c | 7 |
1 files changed, 4 insertions, 3 deletions
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)) |