[PATCH v3 0/3] gdbserver: add thread map

Stephan Rohr stephan.rohr@intel.com
Fri Oct 18 15:20:49 GMT 2024


Hi all,

this is version 3 of my patch that extends the 'process_info' struct
with a process specific thread map for faster lookup of threads.

You can find v2 of the patch at
https://sourceware.org/pipermail/gdb-patches/2024-September/211509.html

Simon's feedback on v2:
https://sourceware.org/pipermail/gdb-patches/2024-October/212207.html

My reply on v2:
https://sourceware.org/pipermail/gdb-patches/2024-October/212471.html

Changes from v2:
  * Added a patch to replaced the templated versions of 'find_thread'
    and 'for_each_thread' with 'gdb::function_view'.
  * Added a patch to replace 'std::list' with 'intrusive_list'.
  * Adapted the gdbserver patch to the 'intrusive_list' type and
    'gdb::function_view'.

Stephan Rohr (3):
  gdbserver: use 'gdb::function_view' in 'find_*' and 'for_each_*'
  gdbserver: introduce 'introdusive_list' type
  gdbserver: add process specific thread list and map.

 gdbserver/dll.cc           |   4 +-
 gdbserver/gdbthread.h      | 125 +++++-----------
 gdbserver/inferiors.cc     | 283 +++++++++++++++++++++++++++++++++----
 gdbserver/inferiors.h      |  72 +++++-----
 gdbserver/linux-low.cc     | 196 ++++++++++++-------------
 gdbserver/linux-low.h      |   2 +-
 gdbserver/linux-x86-low.cc |   4 +-
 gdbserver/regcache.cc      |  12 +-
 gdbserver/regcache.h       |   2 +-
 gdbserver/server.cc        | 166 ++++++++++++++--------
 10 files changed, 535 insertions(+), 331 deletions(-)

-- 
2.34.1

Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Sean Fennelly, Jeffrey Schneiderman, Tiffany Doon Silva
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928



More information about the Gdb-patches mailing list