]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Handle bitfield instructions in the prologue
authorLuis Machado <luis.machado@linaro.org>
Mon, 29 Nov 2021 10:28:28 +0000 (07:28 -0300)
committerLuis Machado <luis.machado@linaro.org>
Mon, 20 Dec 2021 13:54:48 +0000 (10:54 -0300)
Morello GCC seems to generate bitfield instructions in the prologue, which
throws Morello GDB's prologue analyzis off. Handle such instructions so we
can properly skip past the prologue.

gdb/aarch64-tdep.c

index f80f59f42455aa463aae2fa189c89b262d12e5ab..993e719535efea4239f65d77873a02460867cfe7 100644 (file)
@@ -576,6 +576,10 @@ aarch64_analyze_prologue (struct gdbarch *gdbarch,
          /* Stop analysis on branch.  */
          break;
        }
+      else if (inst.opcode->iclass == bitfield)
+       {
+         /* Do nothing */
+       }
       else if (inst.opcode->op == OP_MOVZ
               || (inst.opcode->iclass == a64c
                   && strcmp (inst.opcode->name, "cpy") == 0))