From: Simon Marchi Date: Wed, 4 Dec 2024 16:30:40 +0000 (-0500) Subject: gdbserver: make get_thread_lwp a function X-Git-Tag: gdb-16-branchpoint~188 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ceb0ae8d4ddf7e9bc1a8399a35e49f8bc090a54d;p=thirdparty%2Fbinutils-gdb.git gdbserver: make get_thread_lwp a function Replace the macro with a static inline function. Change-Id: I1cccf5b38d6a412d251763f0316902b07cc28d16 Approved-By: Tom Tromey --- diff --git a/gdbserver/linux-low.h b/gdbserver/linux-low.h index 66f72e94f28..9a25697a90b 100644 --- a/gdbserver/linux-low.h +++ b/gdbserver/linux-low.h @@ -712,7 +712,11 @@ protected: extern linux_process_target *the_linux_target; -#define get_thread_lwp(thr) ((struct lwp_info *) (thread_target_data (thr))) +static inline lwp_info * +get_thread_lwp (thread_info *thr) +{ + return static_cast (thread_target_data (thr)); +} /* Information about a signal that is to be delivered to a thread. */