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.
This commit is contained in:
parent
8f86d7aa85
commit
9521758bf9
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -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 *))
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue