]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: remove duplicate declaration of 'find_thread_ptid'
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Tue, 29 Jun 2021 06:26:06 +0000 (08:26 +0200)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Tue, 29 Jun 2021 06:36:12 +0000 (08:36 +0200)
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.

gdb/ChangeLog
gdb/gdbthread.h

index 022d25cf0cf47672a047c7220785164a3cef2d68..960e33b014da887dcdae2647afdbc5c4e52ed064 100644 (file)
@@ -1,3 +1,7 @@
+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
index eef37f79e6ade577ee8917cde718bf80a0f3c019..622fa1dfdba929e6d9844a62ca9fa50c5d2c7e3f 100644 (file)
@@ -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);