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/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0740c3f75726dd824ded30fc9fef8200d8ff29b;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 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))