There are two declarations of 'find_thread_ptid' in gdbthread.h
with the same signature:
/* Find (non-exited) thread PTID of inferior INF. */
extern thread_info *find_thread_ptid (inferior *inf, ptid_t ptid);
and
/* Search function to lookup a (non-exited) thread by 'ptid'. Only
searches in threads of INF. */
extern struct thread_info *find_thread_ptid (inferior *inf, ptid_t ptid);
Retain the former, remove the latter. Tested by rebuilding.
gdb/ChangeLog:
2021-06-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
* gdbthread.h (find_thread_ptid): Remove the duplicate declaration.
+2021-06-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
+
+ * gdbthread.h (find_thread_ptid): Remove the duplicate declaration.
+
2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
PR gdb/28017
extern struct thread_info *find_thread_ptid (process_stratum_target *targ,
ptid_t ptid);
-/* Search function to lookup a (non-exited) thread by 'ptid'. Only
- searches in threads of INF. */
-extern struct thread_info *find_thread_ptid (inferior *inf, ptid_t ptid);
-
/* Find thread by GDB global thread ID. */
struct thread_info *find_thread_global_id (int global_id);