From: Tankut Baris Aktemur Date: Tue, 29 Jun 2021 06:26:06 +0000 (+0200) Subject: gdb: remove duplicate declaration of 'find_thread_ptid' X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4743af62eb6f00c385dccff54df43ae0bbf31cd3;p=binutils-gdb.git gdb: remove duplicate declaration of 'find_thread_ptid' 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 * gdbthread.h (find_thread_ptid): Remove the duplicate declaration. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 022d25cf0cf..960e33b014d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2021-06-29 Tankut Baris Aktemur + + * gdbthread.h (find_thread_ptid): Remove the duplicate declaration. + 2021-06-28 Simon Marchi PR gdb/28017 diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index eef37f79e6a..622fa1dfdba 100644 --- a/gdb/gdbthread.h +++ b/gdb/gdbthread.h @@ -479,10 +479,6 @@ extern thread_info *find_thread_ptid (inferior *inf, ptid_t ptid); 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);