Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH v1 00/10] gdb: bugfix 31207 and various refactoring in linux-tdep
@ 2026-07-07 15:48 Matthieu Longo
  2026-07-07 15:48 ` [PATCH v1 01/10] gdb/linux-tdep: change linux_fill_prpsinfo to return bool Matthieu Longo
                   ` (9 more replies)
  0 siblings, 10 replies; 66+ messages in thread
From: Matthieu Longo @ 2026-07-07 15:48 UTC (permalink / raw)
  To: gdb-patches
  Cc: Luis Machado, Luis Machado, Andrew Burgess, Yury Khrustalev,
	Pedro Alves, Tom Tromey, Matthieu Longo

This patch series contains:
- a fix for bug 31207.
- a number of refactorings in linux-tdep, and the way procfs files are read.
- preparatory changes for upcoming AArch64 features support (POE, a.k.a Memory Protection Keys [2]
  and POE2) in GDB:
  - parsing of ProtectionKey field in /proc/PID/smaps
  - helpers to read AT_HWCAP3 and AT_HWCAP4

This is a spin-off of a previous patch series [3] where patches 1/8 and 4/8 were abandoned.
Also on demand of Yury Khrustalev, a helper for AT_HWCAP4 was added.
Thanks to Linaro's CIs, a regression was detected in test gcore-stale-thread and after investigation,
the root cause appears to be the same as bug 31207. Patch 2/10 address the root cause, and 7/10 fixes
a discovered issue in the logic of linux_find_memory_regions_full if an reading issue occurs.

All changes were tested by building GDB on x86_64 and AArch64 and running the existing GDB testsuite.

[1]: https://sourceware.org/bugzilla/show_bug.cgi?id=31207
[2]: https://docs.kernel.org/core-api/protection-keys.html
[3]: https://inbox.sourceware.org/gdb-patches/20260703185853.450440-1-matthieu.longo@arm.com/

Regards,
Matthieu


Matthieu Longo (10):
  gdb/linux-tdep: change linux_fill_prpsinfo to return bool
  gdb: rely on the first alive thread TPID when reading Linux procfs files
  target_fileio_read_stralloc: add an optional length parameter
  gdb support: add gdb::replace algorithm for iterators and ranges
  gdb: introduce helper class file_reader_t
  gdb/linux-tdep: migrate linux_info_proc to file_reader_t
  gdb/linux-tdep: migrate linux_find_memory_regions_full to file_reader_t
  gdb/linux-tdep: migrate parse_smaps_data to file_reader_t
  gdb/linux-tdep: parse ProtectionKey in /proc/PID/smaps
  gdb/linux: add helpers to read AT_HWCAP3 and AT_HWCAP4

 gdb/amd64-linux-tdep.c  |  12 +-
 gdb/inferior.c          |  12 ++
 gdb/inferior.h          |   9 +
 gdb/linux-tdep.c        | 356 ++++++++++++++++++++++------------------
 gdb/linux-tdep.h        |  22 +++
 gdb/sparc64-tdep.c      |  12 +-
 gdb/target.c            |  10 +-
 gdb/target.h            |  67 +++++++-
 gdbserver/linux-low.cc  |  28 ++++
 gdbserver/linux-low.h   |   8 +
 gdbsupport/array-view.h |  26 +++
 11 files changed, 386 insertions(+), 176 deletions(-)

-- 
2.55.0


^ permalink raw reply	[flat|nested] 66+ messages in thread

end of thread, other threads:[~2026-07-29  1:58 UTC | newest]

Thread overview: 66+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-07 15:48 [PATCH v1 00/10] gdb: bugfix 31207 and various refactoring in linux-tdep Matthieu Longo
2026-07-07 15:48 ` [PATCH v1 01/10] gdb/linux-tdep: change linux_fill_prpsinfo to return bool Matthieu Longo
2026-07-09  6:26   ` Thiago Jung Bauermann
2026-07-09 12:23     ` Simon Marchi
2026-07-27 14:38       ` Matthieu Longo
2026-07-07 15:48 ` [PATCH v1 02/10] gdb: rely on the first alive thread TPID when reading Linux procfs files Matthieu Longo
2026-07-09  6:29   ` Thiago Jung Bauermann
2026-07-13  9:11     ` Matthieu Longo
2026-07-09 14:24   ` Simon Marchi
2026-07-14 15:47     ` Matthieu Longo
2026-07-07 15:48 ` [PATCH v1 03/10] target_fileio_read_stralloc: add an optional length parameter Matthieu Longo
2026-07-09  6:30   ` Thiago Jung Bauermann
2026-07-13 15:26     ` Matthieu Longo
2026-07-24  2:50       ` Thiago Jung Bauermann
2026-07-27 14:52         ` Matthieu Longo
2026-07-29  1:57           ` Thiago Jung Bauermann
2026-07-21 21:28   ` Luis
2026-07-27 14:48     ` Matthieu Longo
2026-07-27 14:53     ` Matthieu Longo
2026-07-07 15:48 ` [PATCH v1 04/10] gdb support: add gdb::replace algorithm for iterators and ranges Matthieu Longo
2026-07-09  6:30   ` Thiago Jung Bauermann
2026-07-10 21:21   ` Kevin Buettner
2026-07-13 15:51     ` Matthieu Longo
2026-07-21 21:33   ` Luis
2026-07-27 14:58     ` Matthieu Longo
2026-07-07 15:48 ` [PATCH v1 05/10] gdb: introduce helper class file_reader_t Matthieu Longo
2026-07-09  6:33   ` Thiago Jung Bauermann
2026-07-13 17:17     ` Matthieu Longo
2026-07-10 21:43   ` Kevin Buettner
2026-07-13 16:31     ` Matthieu Longo
2026-07-13 15:50   ` Schimpe, Christina
2026-07-13 17:12     ` Matthieu Longo
2026-07-22 16:36       ` Joos, Christina
2026-07-27 15:13         ` Matthieu Longo
2026-07-07 15:48 ` [PATCH v1 06/10] gdb/linux-tdep: migrate linux_info_proc to file_reader_t Matthieu Longo
2026-07-09  6:35   ` Thiago Jung Bauermann
2026-07-13 17:20     ` Matthieu Longo
2026-07-21 21:43   ` Luis
2026-07-27 17:11     ` Matthieu Longo
2026-07-07 15:48 ` [PATCH v1 07/10] gdb/linux-tdep: migrate linux_find_memory_regions_full " Matthieu Longo
2026-07-09  6:36   ` Thiago Jung Bauermann
2026-07-14  8:40     ` Matthieu Longo
2026-07-24  2:51       ` Thiago Jung Bauermann
2026-07-21 21:47   ` Luis
2026-07-27 17:14     ` Matthieu Longo
2026-07-07 15:48 ` [PATCH v1 08/10] gdb/linux-tdep: migrate parse_smaps_data " Matthieu Longo
2026-07-09  6:41   ` Thiago Jung Bauermann
2026-07-14  8:49     ` Matthieu Longo
2026-07-24  2:52       ` Thiago Jung Bauermann
2026-07-21 21:49   ` Luis
2026-07-27 17:17     ` Matthieu Longo
2026-07-07 15:48 ` [PATCH v1 09/10] gdb/linux-tdep: parse ProtectionKey in /proc/PID/smaps Matthieu Longo
2026-07-09  6:42   ` Thiago Jung Bauermann
2026-07-14  9:12     ` Matthieu Longo
2026-07-14  9:29       ` Matthieu Longo
2026-07-24  2:58         ` Thiago Jung Bauermann
2026-07-24 10:27           ` Yury Khrustalev
2026-07-25  6:40             ` Thiago Jung Bauermann
2026-07-27  8:22               ` Yury Khrustalev
2026-07-29  1:10                 ` Thiago Jung Bauermann
2026-07-21 21:57   ` Luis
2026-07-27 17:54     ` Matthieu Longo
2026-07-07 15:49 ` [PATCH v1 10/10] gdb/linux: add helpers to read AT_HWCAP3 and AT_HWCAP4 Matthieu Longo
2026-07-09  6:44   ` Thiago Jung Bauermann
2026-07-21 21:58     ` Luis
2026-07-27 17:32       ` Matthieu Longo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox