aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2021-06-29 08:26:06 +0200
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2021-06-29 08:36:12 +0200
commit4743af62eb6f00c385dccff54df43ae0bbf31cd3 (patch)
tree8859a757df7a19849a9711c921e5a03f2290fd55
parentfda2f85e587cc9692ad19c396a170fdfde740476 (diff)
downloadgdb-4743af62eb6f00c385dccff54df43ae0bbf31cd3.zip
gdb-4743af62eb6f00c385dccff54df43ae0bbf31cd3.tar.gz
gdb-4743af62eb6f00c385dccff54df43ae0bbf31cd3.tar.bz2
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 <tankut.baris.aktemur@intel.com> * gdbthread.h (find_thread_ptid): Remove the duplicate declaration.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/gdbthread.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 022d25c..960e33b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index eef37f7..622fa1d 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);