[GDBserver] Use pre-generated tdesc as test
authorYao Qi <yao.qi@linaro.org>
Tue, 5 Sep 2017 08:54:53 +0000 (09:54 +0100)
committerYao Qi <yao.qi@linaro.org>
Tue, 5 Sep 2017 08:54:53 +0000 (09:54 +0100)
commit25a93583f34f5abfe9c1b24393738547a8de657c
treeafd5a99d95ae585ab568e8058c3a7bc1581da9e6
parent188c9e6dcb2f1342f1ca51e8f68c22852522277e
[GDBserver] Use pre-generated tdesc as test

Now, these *-generate.c files are only used in GDBserver for unit test.
If $development is false (in release), these *-generate.c files won't be
used at all.

gdb/gdbserver:

2017-09-05  Yao Qi  <yao.qi@linaro.org>

* configure.srv: Set srv_i386_linux_regobj empty if $development
is false.
* linux-i386-ipa.c (initialize_low_tracepoint): Don't call
initialize_low_tdesc.
* linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
with #if initialize_low_tdesc.
* linux-x86-tdesc-selftest.c: New file.
* linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
gdb/gdbserver/ChangeLog
gdb/gdbserver/configure.srv
gdb/gdbserver/linux-i386-ipa.c
gdb/gdbserver/linux-x86-low.c
gdb/gdbserver/linux-x86-tdesc-selftest.c [new file with mode: 0644]
gdb/gdbserver/linux-x86-tdesc.c