]> 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)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 1 Sep 2022 22:59:24 +0000 (15:59 -0700)
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 4f65b2b6b05dbbb51a798b27711166f8978aaab9..a7609b3c1c59c266b7206012ccc80de7136814f4 100644 (file)
@@ -579,6 +579,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))