/* Multi-thread control defs for remote server for GDB.
- Copyright (C) 1993-2018 Free Software Foundation, Inc.
+ Copyright (C) 1993-2019 Free Software Foundation, Inc.
This file is part of GDB.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#ifndef GDB_THREAD_H
-#define GDB_THREAD_H
+#ifndef GDBSERVER_GDBTHREAD_H
+#define GDBSERVER_GDBTHREAD_H
-#include "common-gdbthread.h"
+#include "gdbsupport/common-gdbthread.h"
#include "inferiors.h"
#include <list>
random_selector = (int)
((count * (double) rand ()) / (RAND_MAX + 1.0));
- thread_info *thread = find_thread ([&] (thread_info *thread) {
- return func (thread) && (random_selector-- == 0);
+ thread_info *thread = find_thread ([&] (thread_info *thr_arg) {
+ return func (thr_arg) && (random_selector-- == 0);
});
gdb_assert (thread != NULL);
return thread->id.lwp ();
}
-/* Create a cleanup to restore current_thread. */
-struct cleanup *make_cleanup_restore_current_thread (void);
-
-#endif /* GDB_THREAD_H */
+#endif /* GDBSERVER_GDBTHREAD_H */