From 524b57e6b3a36e0ce6573bbc4dba9f0bd9c165b1 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Tue, 4 Aug 2015 14:34:14 +0100 Subject: [PATCH] Disable tracepoint support for aarch32 We only support tracepoint for aarch64. Although arm program can run on aarch64, GDBserver doesn't support tracepoint for it. gdb/gdbserver: 2015-08-04 Yao Qi * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0 if current_thread is 32 bit. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/linux-aarch64-low.c | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 1227686426c..43cae4049de 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2015-08-04 Yao Qi + + * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0 + if current_thread is 32 bit. + 2015-08-04 Yao Qi * linux-aarch64-low.c (aarch64_supports_z_point_type): Return diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c index 90d2b438270..da472ae0652 100644 --- a/gdb/gdbserver/linux-aarch64-low.c +++ b/gdb/gdbserver/linux-aarch64-low.c @@ -701,7 +701,13 @@ aarch64_regs_info (void) static int aarch64_supports_tracepoints (void) { - return 1; + if (current_thread == NULL) + return 1; + else + { + /* We don't support tracepoints on aarch32 now. */ + return is_64bit_tdesc (); + } } /* Implementation of linux_target_ops method "supports_range_stepping". */ -- 2.30.2