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 | 902d7086d7f14120417f882db284a3b7be227208 (patch) | |
tree | 2066462b50924072c7db7f3ebd5adad10709f950 /gdb/ia64-tdep.c | |
parent | 28cfee261d5f36fac430a44609e95fae02e99ebd (diff) | |
download | gdb-902d7086d7f14120417f882db284a3b7be227208.zip gdb-902d7086d7f14120417f882db284a3b7be227208.tar.gz gdb-902d7086d7f14120417f882db284a3b7be227208.tar.bz2 |
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 2a01809..9bbf317 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)) |