public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Change find_thread_ptid functions to be methods
@ 2023-03-27 16:53 Simon Marchi
  2023-03-27 16:53 ` [PATCH 1/2] gdb: make find_thread_ptid an inferior method Simon Marchi
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Simon Marchi @ 2023-03-27 16:53 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

I thought it would make sense for the that the find_thread_ptid
functions to be methods of inferior and process_stratum_target.
Especially the inferior one, as it searches in data that is private
(conceptually) to the inferior class.  I changed the
process_stratum_target one too, while at it.

Simon Marchi (2):
  gdb: make find_thread_ptid an inferior method
  gdb: make find_thread_ptid a process_stratum_target method

 gdb/aarch64-tdep.c           |  4 +---
 gdb/ada-tasks.c              |  8 ++++----
 gdb/aix-thread.c             |  8 ++++----
 gdb/amd-dbgapi-target.c      |  4 ++--
 gdb/bsd-uthread.c            |  4 ++--
 gdb/btrace.c                 |  2 +-
 gdb/darwin-nat.c             |  2 +-
 gdb/fbsd-nat.c               |  2 +-
 gdb/gdbthread.h              |  7 -------
 gdb/gnu-nat.c                |  3 +--
 gdb/infcmd.c                 |  2 +-
 gdb/inferior.c               | 12 ++++++++++++
 gdb/inferior.h               |  3 +++
 gdb/infrun.c                 | 16 ++++++++--------
 gdb/linux-fork.c             |  2 +-
 gdb/linux-nat.c              | 14 +++++++-------
 gdb/linux-thread-db.c        | 14 +++++++-------
 gdb/mi/mi-interp.c           |  2 +-
 gdb/netbsd-nat.c             |  2 +-
 gdb/nto-procfs.c             |  6 +++---
 gdb/process-stratum-target.c | 11 +++++++++++
 gdb/process-stratum-target.h |  3 +++
 gdb/procfs.c                 |  6 +++---
 gdb/python/py-threadevent.c  |  3 +--
 gdb/ravenscar-thread.c       |  8 ++++----
 gdb/record-btrace.c          |  4 ++--
 gdb/remote.c                 | 18 +++++++++---------
 gdb/sol-thread.c             |  4 ++--
 gdb/thread-iter.c            |  2 +-
 gdb/thread.c                 | 35 +++++------------------------------
 gdb/windows-nat.c            |  4 ++--
 31 files changed, 104 insertions(+), 111 deletions(-)

-- 
2.40.0


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

end of thread, other threads:[~2023-04-05  1:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-27 16:53 [PATCH 0/2] Change find_thread_ptid functions to be methods Simon Marchi
2023-03-27 16:53 ` [PATCH 1/2] gdb: make find_thread_ptid an inferior method Simon Marchi
2023-03-27 16:53 ` [PATCH 2/2] gdb: make find_thread_ptid a process_stratum_target method Simon Marchi
2023-04-04 18:44 ` [PATCH 0/2] Change find_thread_ptid functions to be methods Tom Tromey
2023-04-05  1:06   ` Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).