aboutsummaryrefslogtreecommitdiff
path: root/gdbserver
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2024-10-28 13:54:54 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2024-10-28 13:58:42 -0400
commit541b18818225655be65ba123e00d8cf0f6cd009d (patch)
treed56475b37522dac50ce151d16dbadf0cd19d60c6 /gdbserver
parent77f6ff446173ac7790f35d43de7d196a768c38b1 (diff)
downloadgdb-541b18818225655be65ba123e00d8cf0f6cd009d.zip
gdb-541b18818225655be65ba123e00d8cf0f6cd009d.tar.gz
gdb-541b18818225655be65ba123e00d8cf0f6cd009d.tar.bz2
gdbserver: fix formatting in gdbthread.h
Remove newlines after return type in declarations. Change-Id: I00c6f35e063024cf6674d532454b67e6d0d98a19
Diffstat (limited to 'gdbserver')
-rw-r--r--gdbserver/gdbthread.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/gdbserver/gdbthread.h b/gdbserver/gdbthread.h
index adc5857..389bee1 100644
--- a/gdbserver/gdbthread.h
+++ b/gdbserver/gdbthread.h
@@ -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
satisfying FUNC is found. */
-thread_info *
-find_thread (gdb::function_view<bool (thread_info *)> func);
+thread_info *find_thread (gdb::function_view<bool (thread_info *)> func);
/* Like the above, but only consider threads with pid PID. */
-thread_info *
-find_thread (int pid, gdb::function_view<bool (thread_info *)> func);
+thread_info *find_thread (int pid,
+ gdb::function_view<bool (thread_info *)> func);
/* Find the first thread that matches FILTER for which FUNC returns true.
Return NULL if no thread satisfying these conditions is found. */
-thread_info *
-find_thread (ptid_t filter, gdb::function_view<bool (thread_info *)> func);
+thread_info *find_thread (ptid_t filter,
+ gdb::function_view<bool (thread_info *)> func);
/* Invoke FUNC for each thread. */
-void
-for_each_thread (gdb::function_view<void (thread_info *)> func);
+void for_each_thread (gdb::function_view<void (thread_info *)> func);
/* Like the above, but only consider threads with pid PID. */
-void
-for_each_thread (int pid, gdb::function_view<void (thread_info *)> func);
+void for_each_thread (int pid, gdb::function_view<void (thread_info *)> func);
/* Find the a random thread for which FUNC (THREAD) returns true. If
no entry is found then return NULL. */
-thread_info *
-find_thread_in_random (gdb::function_view<bool (thread_info *)> func);
+thread_info *find_thread_in_random
+ (gdb::function_view<bool (thread_info *)> func);
/* Get current thread ID (Linux task ID). */
#define current_ptid (current_thread->id)