Disable tracepoint support for aarch32
authorYao Qi <yao.qi@linaro.org>
Tue, 4 Aug 2015 13:34:14 +0000 (14:34 +0100)
committerYao Qi <yao.qi@linaro.org>
Tue, 4 Aug 2015 13:34:14 +0000 (14:34 +0100)
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  <yao.qi@linaro.org>

* linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
if current_thread is 32 bit.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch64-low.c

index 1227686426cc6756573cc8eeaa3c5b56e2478eaf..43cae4049def30f9bf7a6f5638c3ca28f773337d 100644 (file)
@@ -1,3 +1,8 @@
+2015-08-04  Yao Qi  <yao.qi@linaro.org>
+
+       * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
+       if current_thread is 32 bit.
+
 2015-08-04  Yao Qi  <yao.qi@linaro.org>
 
        * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
index 90d2b438270363f4e1415c195391800cde822e36..da472ae065215ba232c60d89046b7640db3a73cc 100644 (file)
@@ -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".  */