diff options
author | Giancarlo Frix <gfrix@rocketsoftware.com> | 2020-12-06 14:27:52 +0400 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2020-12-06 14:27:52 +0400 |
commit | 296cfb88895e35d8bfc5ce43449e65a92d87354d (patch) | |
tree | 64e1c51035dce4d6b88c0d04f19cff7458dfca2a /gprof/ChangeLog-2011 | |
parent | 63c457b911043aa6ebf3558e2d2050ee53d28a8e (diff) | |
download | gdb-296cfb88895e35d8bfc5ce43449e65a92d87354d.zip gdb-296cfb88895e35d8bfc5ce43449e65a92d87354d.tar.gz gdb-296cfb88895e35d8bfc5ce43449e65a92d87354d.tar.bz2 |
s390: Fix BC instruction breakpoint handling
This fixes a long-lived bug in the s390 port.
When trying to step over a breakpoint set on a BC (branch on condition)
instruction with displaced stepping on IBM Z, gdb would incorrectly
adjust the pc regardless of whether or not the branch was taken. Since
the branch target is an absolute address, this would cause the inferior
to jump around wildly whenever the branch was taken, either crashing it
or causing it to behave unpredictably.
It turns out that the logic to handle BC instructions correctly was in
the code, but that the enum value representing its opcode has always
been incorrect.
This patch corrects the enum value to the actual opcode, fixing the
stepping problem. The enum value is also used in the prologue analysis
code, so this also fixes a minor bug where more of the prologue would
be read than was necessary.
gdb/ChangeLog:
PR breakpoints/27009
* s390-tdep.h (op_bc): Correct BC opcode value.
Diffstat (limited to 'gprof/ChangeLog-2011')
0 files changed, 0 insertions, 0 deletions