Commit Graph

103323 Commits

Author SHA1 Message Date
Shahab Vahedi
abaf3df98b arc: Write correct "eret" value during register collection
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-04 11:41:47 +01:00
GDB Administrator
774f775cad Automatic date update in version.in 2020-12-04 00:00:48 +00:00
GDB Administrator
a2e9100aa8 Automatic date update in version.in 2020-12-03 00:00:34 +00:00
GDB Administrator
866f1b1c9a Automatic date update in version.in 2020-12-02 00:00:42 +00:00
GDB Administrator
2ff9a46fd6 Automatic date update in version.in 2020-12-01 00:00:48 +00:00
GDB Administrator
1429d8beb4 Automatic date update in version.in 2020-11-30 00:00:40 +00:00
Hannes Domani
815c8f80e2 Fix Value.format_string docu for static members argument
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-29 19:11:38 +01:00
Hannes Domani
b03dac541f Don't delete the locator win info
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-29 18:53:52 +01:00
GDB Administrator
f2fb5e6f21 Automatic date update in version.in 2020-11-29 00:00:41 +00:00
GDB Administrator
9ca51a9034 Automatic date update in version.in 2020-11-28 00:00:45 +00:00
GDB Administrator
8dad16200e Automatic date update in version.in 2020-11-27 00:00:55 +00:00
GDB Administrator
2d409e3adc Automatic date update in version.in 2020-11-26 00:00:47 +00:00
GDB Administrator
fe3088f6ef Automatic date update in version.in 2020-11-25 00:00:35 +00:00
GDB Administrator
12f93c92d0 Automatic date update in version.in 2020-11-24 00:00:47 +00:00
GDB Administrator
08d79fde1a Automatic date update in version.in 2020-11-23 00:00:32 +00:00
GDB Administrator
6427533f8f Automatic date update in version.in 2020-11-22 00:00:35 +00:00
GDB Administrator
a7ca0db2a9 Automatic date update in version.in 2020-11-21 00:00:39 +00:00
GDB Administrator
68f7ee1f46 Automatic date update in version.in 2020-11-20 00:00:37 +00:00
GDB Administrator
77477f6d04 Automatic date update in version.in 2020-11-19 00:00:33 +00:00
GDB Administrator
a90a7eb266 Automatic date update in version.in 2020-11-18 00:00:36 +00:00
GDB Administrator
45c0714276 Automatic date update in version.in 2020-11-17 00:00:36 +00:00
GDB Administrator
c7409b74dd Automatic date update in version.in 2020-11-16 00:00:35 +00:00
GDB Administrator
4028013ab8 Automatic date update in version.in 2020-11-15 00:00:33 +00:00
GDB Administrator
2b8bbb9c5e Automatic date update in version.in 2020-11-14 00:00:40 +00:00
GDB Administrator
8584763bdc Automatic date update in version.in 2020-11-13 00:00:54 +00:00
GDB Administrator
7d73ecece6 Automatic date update in version.in 2020-11-12 00:00:45 +00:00
GDB Administrator
625214b4bc Automatic date update in version.in 2020-11-11 00:00:30 +00:00
GDB Administrator
44f04519db Automatic date update in version.in 2020-11-10 00:00:48 +00:00
GDB Administrator
068a9f4698 Automatic date update in version.in 2020-11-09 00:00:25 +00:00
GDB Administrator
1370d58819 Automatic date update in version.in 2020-11-08 00:00:27 +00:00
GDB Administrator
b99d8d8bfe Automatic date update in version.in 2020-11-07 00:00:37 +00:00
Romain Geissler
60714c0fc0 gdb: better static python detection in configure machinery
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-06 18:02:24 +00:00
GDB Administrator
2aec92379f Automatic date update in version.in 2020-11-06 00:00:49 +00:00
GDB Administrator
7736ed8327 Automatic date update in version.in 2020-11-05 00:00:39 +00:00
GDB Administrator
923b14f187 Automatic date update in version.in 2020-11-04 00:00:42 +00:00
GDB Administrator
b558fb22bc Automatic date update in version.in 2020-11-03 00:00:41 +00:00
GDB Administrator
8aa3beab03 Automatic date update in version.in 2020-11-02 00:00:39 +00:00
GDB Administrator
3163819a76 Automatic date update in version.in 2020-11-01 00:00:30 +00:00
GDB Administrator
4b8bc9ac85 Automatic date update in version.in 2020-10-31 00:00:31 +00:00
GDB Administrator
82c494b0d1 Automatic date update in version.in 2020-10-30 00:00:32 +00:00
GDB Administrator
805187e6cd Automatic date update in version.in 2020-10-29 00:00:41 +00:00
GDB Administrator
f3fb4a77f2 Automatic date update in version.in 2020-10-28 00:00:35 +00:00
GDB Administrator
32e63cccb8 Automatic date update in version.in 2020-10-27 00:00:27 +00:00
GDB Administrator
eac45cf79a Automatic date update in version.in 2020-10-26 00:00:27 +00:00
GDB Administrator
e8f9da19bc Automatic date update in version.in 2020-10-25 00:00:31 +00:00
Joel Brobecker
4f2b5ace6f Bump GDB version number to 10.1.90.DATE-git.
gdb/ChangeLog:

	* version.in: Set GDB version number to 10.1.90.DATE-git.

gdb/testsuite/ChangeLog:

	* gdb.base/default.exp: Change $_gdb_minor to 2.
2020-10-24 08:41:57 +04:00
Joel Brobecker
606e3fd147 Document the GDB 10.1 release in gdb/ChangeLog
gdb/ChangeLog:

	GDB 10.1 released.
2020-10-24 08:36:33 +04:00
Joel Brobecker
1510de4294 Set GDB version number to 10.1.
gdb/ChangeLog:

	* version.in: Set GDB version number to 10.1.
gdb-10.1-release
2020-10-24 08:23:02 +04:00
GDB Administrator
893aa14fb9 Automatic date update in version.in 2020-10-24 00:00:32 +00:00
GDB Administrator
34718bcc22 Automatic date update in version.in 2020-10-23 00:00:45 +00:00