This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PUSHED] [PATCH] S390: Recognize special jumps in prologue parser
- From: Andreas Arnez <arnez at linux dot vnet dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Cc: Ulrich Weigand <uweigand at de dot ibm dot com>
- Date: Wed, 09 Mar 2016 17:16:35 +0100
- Subject: [PUSHED] [PATCH] S390: Recognize special jumps in prologue parser
- Authentication-results: sourceware.org; auth=none
- References: <m3wppe1tdj dot fsf at oc1027705133 dot ibm dot com>
Pushed.
On Mon, Mar 07 2016, Andreas Arnez wrote:
> Functions compiled with the gcc option `-mhotpatch' may start with a
> branch-never BRCL instruction as a 6-byte NOP. And functions compiled
> with `-mstack-size' contain a BRC instruction in their prologue that is
> actually a conditional trap. Both of these special jumps cause the
> prologue parser to stop and yield bad unwinding results.
>
> This change makes the prologue analyzer recognize such special jumps and
> ignore them.
>
> gdb/ChangeLog:
>
> * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
> instructions that do nothing or are conditional traps.