diff options
author | Yao Qi <yao.qi@linaro.org> | 2015-08-04 14:34:14 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2015-08-04 14:34:14 +0100 |
commit | 524b57e6b3a36e0ce6573bbc4dba9f0bd9c165b1 (patch) | |
tree | 08d518b325a4533690c21cb84fcb37854a5b0d42 /gdb/gdbserver/linux-aarch64-low.c | |
parent | 6085d6f69562472c389679052dcfe66cf3068a76 (diff) | |
download | gdb-524b57e6b3a36e0ce6573bbc4dba9f0bd9c165b1.zip gdb-524b57e6b3a36e0ce6573bbc4dba9f0bd9c165b1.tar.gz gdb-524b57e6b3a36e0ce6573bbc4dba9f0bd9c165b1.tar.bz2 |
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 <yao.qi@linaro.org>
* linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
if current_thread is 32 bit.
Diffstat (limited to 'gdb/gdbserver/linux-aarch64-low.c')
-rw-r--r-- | gdb/gdbserver/linux-aarch64-low.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c index 90d2b43..da472ae 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". */ |