From 01ae9258509e29d4f79511aba5ffe3d4e9a6af57 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 f80f59f4245..993e719535e 100644 --- a/gdb/aarch64-tdep.c +++ b/gdb/aarch64-tdep.c @@ -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)) -- 2.47.2