aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2024-12-04 11:30:40 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2024-12-04 15:05:58 -0500
commitceb0ae8d4ddf7e9bc1a8399a35e49f8bc090a54d (patch)
tree6f81fededab9d597b9000c79e9ac863af709a09d
parentffa5bea793a2e4f4e5d4c33c770d2f1540008164 (diff)
downloadbinutils-ceb0ae8d4ddf7e9bc1a8399a35e49f8bc090a54d.zip
binutils-ceb0ae8d4ddf7e9bc1a8399a35e49f8bc090a54d.tar.gz
binutils-ceb0ae8d4ddf7e9bc1a8399a35e49f8bc090a54d.tar.bz2
gdbserver: make get_thread_lwp a function
Replace the macro with a static inline function. Change-Id: I1cccf5b38d6a412d251763f0316902b07cc28d16 Approved-By: Tom Tromey <tom@tromey.com>
-rw-r--r--gdbserver/linux-low.h6
1 files changed, 5 insertions, 1 deletions
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<lwp_info *> (thread_target_data (thr));
+}
/* Information about a signal that is to be delivered to a thread. */