[2/4] gdbserver: make get_thread_lwp a function
Checks
Commit Message
From: Simon Marchi <simon.marchi@polymtl.ca>
Replace the macro with a static inline function.
Change-Id: I1cccf5b38d6a412d251763f0316902b07cc28d16
---
gdbserver/linux-low.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
@@ -712,7 +712,11 @@ class linux_process_target : public process_stratum_target
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<lwp_info *> (thread_target_data (thr));
+}
/* Information about a signal that is to be delivered to a thread. */