mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-10 17:43:16 +00:00
gdbserver: fix formatting in gdbthread.h
Remove newlines after return type in declarations. Change-Id: I00c6f35e063024cf6674d532454b67e6d0d98a19
This commit is contained in:
@@ -104,35 +104,32 @@ struct thread_info *find_any_thread_of_pid (int pid);
|
|||||||
/* Find the first thread for which FUNC returns true. Return NULL if no thread
|
/* Find the first thread for which FUNC returns true. Return NULL if no thread
|
||||||
satisfying FUNC is found. */
|
satisfying FUNC is found. */
|
||||||
|
|
||||||
thread_info *
|
thread_info *find_thread (gdb::function_view<bool (thread_info *)> func);
|
||||||
find_thread (gdb::function_view<bool (thread_info *)> func);
|
|
||||||
|
|
||||||
/* Like the above, but only consider threads with pid PID. */
|
/* Like the above, but only consider threads with pid PID. */
|
||||||
|
|
||||||
thread_info *
|
thread_info *find_thread (int pid,
|
||||||
find_thread (int pid, gdb::function_view<bool (thread_info *)> func);
|
gdb::function_view<bool (thread_info *)> func);
|
||||||
|
|
||||||
/* Find the first thread that matches FILTER for which FUNC returns true.
|
/* Find the first thread that matches FILTER for which FUNC returns true.
|
||||||
Return NULL if no thread satisfying these conditions is found. */
|
Return NULL if no thread satisfying these conditions is found. */
|
||||||
|
|
||||||
thread_info *
|
thread_info *find_thread (ptid_t filter,
|
||||||
find_thread (ptid_t filter, gdb::function_view<bool (thread_info *)> func);
|
gdb::function_view<bool (thread_info *)> func);
|
||||||
|
|
||||||
/* Invoke FUNC for each thread. */
|
/* Invoke FUNC for each thread. */
|
||||||
|
|
||||||
void
|
void for_each_thread (gdb::function_view<void (thread_info *)> func);
|
||||||
for_each_thread (gdb::function_view<void (thread_info *)> func);
|
|
||||||
|
|
||||||
/* Like the above, but only consider threads with pid PID. */
|
/* Like the above, but only consider threads with pid PID. */
|
||||||
|
|
||||||
void
|
void for_each_thread (int pid, gdb::function_view<void (thread_info *)> func);
|
||||||
for_each_thread (int pid, gdb::function_view<void (thread_info *)> func);
|
|
||||||
|
|
||||||
/* Find the a random thread for which FUNC (THREAD) returns true. If
|
/* Find the a random thread for which FUNC (THREAD) returns true. If
|
||||||
no entry is found then return NULL. */
|
no entry is found then return NULL. */
|
||||||
|
|
||||||
thread_info *
|
thread_info *find_thread_in_random
|
||||||
find_thread_in_random (gdb::function_view<bool (thread_info *)> func);
|
(gdb::function_view<bool (thread_info *)> func);
|
||||||
|
|
||||||
/* Get current thread ID (Linux task ID). */
|
/* Get current thread ID (Linux task ID). */
|
||||||
#define current_ptid (current_thread->id)
|
#define current_ptid (current_thread->id)
|
||||||
|
|||||||
Reference in New Issue
Block a user