From: Luis Machado Date: Mon, 29 Nov 2021 10:28:28 +0000 (-0300) Subject: Handle bitfield instructions in the prologue X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=01ae9258509e29d4f79511aba5ffe3d4e9a6af57;p=thirdparty%2Fbinutils-gdb.git 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. --- 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))