mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
f49ff00066
tdesc_i386_XXX_linux is used in many places in linux-x86-low.c and this patch adds a new function i386_linux_read_description to return the right tdesc according to xcr0. i386_linux_read_description is quite similar to the counterpart in GDB, and the following patch will share the duplicated code, so this patch adds arch/tdesc.h includes the declarations of various tdesc apis which are used by the shared code. The generated c feature files can include arch/tdesc.h only. gdb/gdbserver: 2017-09-05 Yao Qi <yao.qi@linaro.org> * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o. (ipa_obj): Likewise. * linux-i386-ipa.c: Include common/x86-xstate.h (get_ipa_tdesc): Call i386_linux_read_description. (initialize_low_tracepoint): Don't call init_registers_XXX functions, call initialize_low_tdesc instead. * linux-x86-low.c (x86_linux_read_description): Call i386_linux_read_description. (initialize_low_arch): Don't call init_registers_i386_XXX functions, call initialize_low_tdesc. * linux-x86-tdesc.c: New file. * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST. (i386_get_ipa_tdesc_idx): Declare. (i386_get_ipa_tdesc): Declare. (initialize_low_tdesc): Declare. gdb: 2017-09-05 Yao Qi <yao.qi@linaro.org> * arch/tdesc.h: New file. * regformats/regdat.sh: Generate code using tdesc_create_reg. * target-descriptions.c: Update comments. * target-descriptions.h: Include "arch/tdesc.h". Remove the declarations. * features/i386/32bit-avx.c: Re-generated. * features/i386/32bit-avx512.c: Re-generated. * features/i386/32bit-core.c: Re-generated. * features/i386/32bit-linux.c: Re-generated. * features/i386/32bit-mpx.c: Re-generated. * features/i386/32bit-pkeys.c: Re-generated. * features/i386/32bit-sse.c: Re-generated. |
||
---|---|---|
.. | ||
32bit-avx512.c | ||
32bit-avx512.xml | ||
32bit-avx.c | ||
32bit-avx.xml | ||
32bit-core.c | ||
32bit-core.xml | ||
32bit-linux.c | ||
32bit-linux.xml | ||
32bit-mpx.c | ||
32bit-mpx.xml | ||
32bit-pkeys.c | ||
32bit-pkeys.xml | ||
32bit-sse.c | ||
32bit-sse.xml | ||
64bit-avx512.xml | ||
64bit-avx.xml | ||
64bit-core.xml | ||
64bit-linux.xml | ||
64bit-mpx.xml | ||
64bit-pkeys.xml | ||
64bit-segments.xml | ||
64bit-sse.xml | ||
amd64-avx-avx512-linux.c | ||
amd64-avx-avx512-linux.xml | ||
amd64-avx-avx512.c | ||
amd64-avx-avx512.xml | ||
amd64-avx-linux.c | ||
amd64-avx-linux.xml | ||
amd64-avx-mpx-avx512-pku-linux.c | ||
amd64-avx-mpx-avx512-pku-linux.xml | ||
amd64-avx-mpx-avx512-pku.c | ||
amd64-avx-mpx-avx512-pku.xml | ||
amd64-avx-mpx-linux.c | ||
amd64-avx-mpx-linux.xml | ||
amd64-avx-mpx.c | ||
amd64-avx-mpx.xml | ||
amd64-avx.c | ||
amd64-avx.xml | ||
amd64-linux.c | ||
amd64-linux.xml | ||
amd64-mpx-linux.c | ||
amd64-mpx-linux.xml | ||
amd64-mpx.c | ||
amd64-mpx.xml | ||
amd64.c | ||
amd64.xml | ||
i386-avx-avx512-linux.c | ||
i386-avx-avx512-linux.xml | ||
i386-avx-avx512.c | ||
i386-avx-avx512.xml | ||
i386-avx-linux.c | ||
i386-avx-linux.xml | ||
i386-avx-mpx-avx512-pku-linux.c | ||
i386-avx-mpx-avx512-pku-linux.xml | ||
i386-avx-mpx-avx512-pku.c | ||
i386-avx-mpx-avx512-pku.xml | ||
i386-avx-mpx-linux.c | ||
i386-avx-mpx-linux.xml | ||
i386-avx-mpx.c | ||
i386-avx-mpx.xml | ||
i386-avx.c | ||
i386-avx.xml | ||
i386-linux.c | ||
i386-linux.xml | ||
i386-mmx-linux.c | ||
i386-mmx-linux.xml | ||
i386-mmx.c | ||
i386-mmx.xml | ||
i386-mpx-linux.c | ||
i386-mpx-linux.xml | ||
i386-mpx.c | ||
i386-mpx.xml | ||
i386.c | ||
i386.xml | ||
x32-avx-avx512-linux.c | ||
x32-avx-avx512-linux.xml | ||
x32-avx-linux.c | ||
x32-avx-linux.xml | ||
x32-core.xml | ||
x32-linux.c | ||
x32-linux.xml |