[PATCH] gdb: remove duplicate declaration of 'find_thread_ptid'

Andrew Burgess andrew.burgess@embecosm.com
Mon Jun 28 17:48:13 GMT 2021


* Tankut Baris Aktemur via Gdb-patches <gdb-patches@sourceware.org> [2021-06-28 17:11:11 +0200]:

> There are two declarations of 'find_thread_ptid' in gdbthread.h
> with the same signature:
> 
>   extern thread_info *find_thread_ptid (inferior *inf, ptid_t ptid);
> 
> Remove the newer declaration, retain the older one.  Tested by rebuilding.
> 
> gdb/ChangeLog:
> 2021-06-28  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
> 
> 	* gdbthread.h (find_thread_ptid): Remove the duplicate
> 	* declaration.

LGTM.

Thanks,
Andrew


> ---
>  gdb/gdbthread.h | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
> index eef37f79e6a..2780656f973 100644
> --- a/gdb/gdbthread.h
> +++ b/gdb/gdbthread.h
> @@ -472,9 +472,6 @@ extern bool in_thread_list (process_stratum_target *targ, ptid_t ptid);
>     global id, not the system's).  */
>  extern int valid_global_thread_id (int global_id);
>  
> -/* Find (non-exited) thread PTID of inferior INF.  */
> -extern thread_info *find_thread_ptid (inferior *inf, ptid_t ptid);
> -
>  /* Search function to lookup a (non-exited) thread by 'ptid'.  */
>  extern struct thread_info *find_thread_ptid (process_stratum_target *targ,
>  					     ptid_t ptid);
> -- 
> 2.17.1
> 


More information about the Gdb-patches mailing list