aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2017-12-02 20:36:45 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2017-12-02 20:36:45 -0500
commit9521758bf967360fc1e18b2a2195d97ae19cb80d (patch)
tree3224725305359c8ecf58957b51f7e71dd0fbab86 /gdb
parent8f86d7aa8504e9a557e807a3e37718055befcd84 (diff)
downloadgdb-9521758bf967360fc1e18b2a2195d97ae19cb80d.zip
gdb-9521758bf967360fc1e18b2a2195d97ae19cb80d.tar.gz
gdb-9521758bf967360fc1e18b2a2195d97ae19cb80d.tar.bz2
Remove find_inferior
All the usages of find_inferior were removed, so the function itself can be removed. gdb/gdbserver/ChangeLog: * inferiors.h (find_inferior): Remove. * inferiors.c (find_inferior): Remove.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/inferiors.c12
-rw-r--r--gdb/gdbserver/inferiors.h2
3 files changed, 5 insertions, 14 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index ca998db..882aff4 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@
2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
+ * inferiors.h (find_inferior): Remove.
+ * inferiors.c (find_inferior): Remove.
+
+2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
+
* linux-low.c (resume_status_pending_p): Update comment.
(need_step_over_p): Update comment.
diff --git a/gdb/gdbserver/inferiors.c b/gdb/gdbserver/inferiors.c
index 053f675..47cc13a 100644
--- a/gdb/gdbserver/inferiors.c
+++ b/gdb/gdbserver/inferiors.c
@@ -30,18 +30,6 @@ struct thread_info *current_thread;
/* The current working directory used to start the inferior. */
static const char *current_inferior_cwd = NULL;
-thread_info *
-find_inferior (std::list<thread_info *> *thread_list,
- int (*func) (thread_info *, void *),
- void *arg)
-{
- gdb_assert (thread_list == &all_threads);
-
- return find_thread ([&] (thread_info *thread) {
- return func (thread, arg);
- });
-}
-
void
for_each_inferior (std::list<thread_info *> *thread_list,
void (*action) (thread_info *))
diff --git a/gdb/gdbserver/inferiors.h b/gdb/gdbserver/inferiors.h
index 44644c2..2aab846 100644
--- a/gdb/gdbserver/inferiors.h
+++ b/gdb/gdbserver/inferiors.h
@@ -140,8 +140,6 @@ int have_attached_inferiors_p (void);
void clear_inferiors (void);
-thread_info *find_inferior (std::list<thread_info *> *thread_list,
- int (*func) (thread_info *, void *), void *arg);
void for_each_inferior (std::list<thread_info *> *thread_list,
void (*action) (thread_info *));
void for_each_inferior_with_data (std::list<thread_info *> *thread_list,