From b0740c3f75726dd824ded30fc9fef8200d8ff29b Mon Sep 17 00:00:00 2001 From: Luis Machado Date: Mon, 29 Nov 2021 07:28:28 -0300 Subject: [PATCH] Handle bitfield instructions in the prologue 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c index 4f65b2b6b05..a7609b3c1c5 100644 --- a/gdb/aarch64-tdep.c +++ b/gdb/aarch64-tdep.c @@ -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)) -- 2.47.2