aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2017-09-05 09:54:52 +0100
committerYao Qi <yao.qi@linaro.org>2017-09-05 09:54:52 +0100
commit2b68ef2f11daef3ab3c6941ebf53dfcd0fb79fbf (patch)
treeac0253408b6046745f3fc568d05c7c3b62af53b0 /gdb
parentf7000548a2b79d7e5cb924468117ca4245e6b820 (diff)
downloadgdb-2b68ef2f11daef3ab3c6941ebf53dfcd0fb79fbf.zip
gdb-2b68ef2f11daef3ab3c6941ebf53dfcd0fb79fbf.tar.gz
gdb-2b68ef2f11daef3ab3c6941ebf53dfcd0fb79fbf.tar.bz2
Return X86_TDESC_MMX in x86_get_ipa_tdesc_idx
gdb/gdbserver: 2017-09-05 Yao Qi <yao.qi@linaro.org> * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX instead of 0.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-x86-low.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 8fa8ef1..b6febf2 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@
2017-09-05 Yao Qi <yao.qi@linaro.org>
+ * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
+ instead of 0.
+
+2017-09-05 Yao Qi <yao.qi@linaro.org>
+
* Makefile.in (IPA_OBJS): Add vec-ipa.o
* regcache.c (get_thread_regcache): Use VEC_length.
(init_register_cache): Likewise.
diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c
index 12c7a1b..5c56a5d 100644
--- a/gdb/gdbserver/linux-x86-low.c
+++ b/gdb/gdbserver/linux-x86-low.c
@@ -2927,7 +2927,8 @@ x86_get_ipa_tdesc_idx (void)
if (tdesc == tdesc_i386_avx_avx512_linux)
return X86_TDESC_AVX_AVX512;
- return 0;
+ /* If none tdesc is found, return the one with minimum features. */
+ return X86_TDESC_MMX;
}
/* This is initialized assuming an amd64 target.