From ceb0ae8d4ddf7e9bc1a8399a35e49f8bc090a54d Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 4 Dec 2024 11:30:40 -0500 Subject: gdbserver: make get_thread_lwp a function Replace the macro with a static inline function. Change-Id: I1cccf5b38d6a412d251763f0316902b07cc28d16 Approved-By: Tom Tromey --- gdbserver/linux-low.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gdbserver/linux-low.h b/gdbserver/linux-low.h index 66f72e9..9a25697 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. */ -- cgit v1.1