From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 7387A3858C83 for ; Mon, 27 Mar 2023 16:53:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7387A3858C83 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=efficios.com Received: from localhost.localdomain (unknown [217.28.27.60]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 180D31E0D3; Mon, 27 Mar 2023 12:53:56 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 0/2] Change find_thread_ptid functions to be methods Date: Mon, 27 Mar 2023 12:53:53 -0400 Message-Id: <20230327165355.89228-1-simon.marchi@efficios.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1167.2 required=5.0 tests=BAYES_00,KAM_DMARC_NONE,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_SOFTFAIL,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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