aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-12-07Automatic date update in version.inGDB Administrator1-1/+1
2020-12-06s390: Fix BC instruction breakpoint handlingGiancarlo Frix2-1/+6
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.
2020-12-06Automatic date update in version.inGDB Administrator1-1/+1
2020-12-05Automatic date update in version.inGDB Administrator1-1/+1
2020-12-04Update gdb/ChangeLog to reflect the PR for a bug fixShahab Vahedi1-0/+1
This is just an update in the gdb/ChangeLog to reflect a newly created PR [27015] for a bugfix commit: abaf3df9 arc: Write correct "eret" value during register collection
2020-12-04arc: Write correct "eret" value during register collectionShahab Vahedi2-3/+12
In collect_register() function of arc-linux-tdep.c, the "eret" (exception return) register value was not being reported correctly. This patch fixes that. Background: When asked for the "pc" value, we have to update the "eret" register with GDB's STOP_PC. The "eret" instructs the kernel code where to jump back when an instruction has stopped due to a breakpoint. This is how collect_register() was doing so: --------------8<-------------- if (regnum == gdbarch_pc_regnum (gdbarch)) regnum = ARC_ERET_REGNUM; regcache->raw_collect (regnum, buf + arc_linux_core_reg_offsets[regnum]); -------------->8-------------- Root cause: Although this is using the correct offset (ERET register's), it is also changing the REGNUM itself. Therefore, raw_collect (regnum, ...) is not reading from "pc" anymore. v2: - Fix a copy/paste issue as rightfully addressed by Tom [1]. [1] https://sourceware.org/pipermail/gdb-patches/2020-November/173208.html gdb/ChangeLog: * arc-linux-tdep.c (collect_register): Populate "eret" by "pc" value from the regcache when asked for "pc" value.
2020-12-04Automatic date update in version.inGDB Administrator1-1/+1
2020-12-03Automatic date update in version.inGDB Administrator1-1/+1
2020-12-02Automatic date update in version.inGDB Administrator1-1/+1
2020-12-01Automatic date update in version.inGDB Administrator1-1/+1
2020-11-30Automatic date update in version.inGDB Administrator1-1/+1
2020-11-29Fix Value.format_string docu for static members argumentHannes Domani2-1/+6
The argument is called static_members, not static_fields. gdb/doc/ChangeLog: 2020-11-29 Hannes Domani <ssbssa@yahoo.de> PR python/26974 * python.texi: Fix docu for static members argument.
2020-11-29Don't delete the locator win infoHannes Domani2-1/+9
The locator win info is special because it is static, all the others are created dynamically. gdb/ChangeLog: 2020-11-29 Hannes Domani <ssbssa@yahoo.de> PR tui/26973 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the static locator win info.
2020-11-29Automatic date update in version.inGDB Administrator1-1/+1
2020-11-28Automatic date update in version.inGDB Administrator1-1/+1
2020-11-27Automatic date update in version.inGDB Administrator1-1/+1
2020-11-26Automatic date update in version.inGDB Administrator1-1/+1
2020-11-25Automatic date update in version.inGDB Administrator1-1/+1
2020-11-24Automatic date update in version.inGDB Administrator1-1/+1
2020-11-23Automatic date update in version.inGDB Administrator1-1/+1
2020-11-22Automatic date update in version.inGDB Administrator1-1/+1
2020-11-21Automatic date update in version.inGDB Administrator1-1/+1
2020-11-20Automatic date update in version.inGDB Administrator1-1/+1
2020-11-19Automatic date update in version.inGDB Administrator1-1/+1
2020-11-18Automatic date update in version.inGDB Administrator1-1/+1
2020-11-17Automatic date update in version.inGDB Administrator1-1/+1
2020-11-16Automatic date update in version.inGDB Administrator1-1/+1
2020-11-15Automatic date update in version.inGDB Administrator1-1/+1
2020-11-14Automatic date update in version.inGDB Administrator1-1/+1
2020-11-13Automatic date update in version.inGDB Administrator1-1/+1
2020-11-12Automatic date update in version.inGDB Administrator1-1/+1
2020-11-11Automatic date update in version.inGDB Administrator1-1/+1
2020-11-10Automatic date update in version.inGDB Administrator1-1/+1
2020-11-09Automatic date update in version.inGDB Administrator1-1/+1
2020-11-08Automatic date update in version.inGDB Administrator1-1/+1
2020-11-07Automatic date update in version.inGDB Administrator1-1/+1
2020-11-06gdb: better static python detection in configure machineryRomain Geissler3-2/+9
In python 3, itertools is a builtin module, so whether or not the python you link against is a shared or a static one, importing it works. Change the import test to use ctypes which is a dynamic module in both python 2 and 3. gdb/ChangeLog: PR python/26832 * configure: Regenerate. * configure.ac: Check for python modules ctypes instead of itertools.
2020-11-06Automatic date update in version.inGDB Administrator1-1/+1
2020-11-05Automatic date update in version.inGDB Administrator1-1/+1
2020-11-04Automatic date update in version.inGDB Administrator1-1/+1
2020-11-03Automatic date update in version.inGDB Administrator1-1/+1
2020-11-02Automatic date update in version.inGDB Administrator1-1/+1
2020-11-01Automatic date update in version.inGDB Administrator1-1/+1
2020-10-31Automatic date update in version.inGDB Administrator1-1/+1
2020-10-30Automatic date update in version.inGDB Administrator1-1/+1
2020-10-29Automatic date update in version.inGDB Administrator1-1/+1
2020-10-28Automatic date update in version.inGDB Administrator1-1/+1
2020-10-27Automatic date update in version.inGDB Administrator1-1/+1
2020-10-26Automatic date update in version.inGDB Administrator1-1/+1
2020-10-25Automatic date update in version.inGDB Administrator1-1/+1