Centralize amd64-linux target descriptions
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)
commit9d3d478be5e21151d3755d7b2e6f1cd8ff92d726
tree44f3a0e29a71150f3cb98813b26d67ec8cbcfd94
parentb9f1d50ffcac4c4b65cb05c2971106cb06e8774c
Centralize amd64-linux target descriptions

This patch adds a new function amd64_linux_read_description, which
creates amd64-linux target descriptions according to its two
arguments, xcr0 and is_x32.

gdb:

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

* amd64-linux-tdep.c (amd64_linux_read_description): New
function.
(amd64_linux_core_read_description): Call
amd64_linux_read_description.
(amd64_linux_init_abi): Likewise.
(amd64_x32_linux_init_abi): Likewise.
* amd64-linux-tdep.h (amd64_linux_read_description): Declare.
* x86-linux-nat.c (x86_linux_read_description): Call
amd64_linux_read_description.
gdb/ChangeLog
gdb/amd64-linux-tdep.c
gdb/amd64-linux-tdep.h
gdb/x86-linux-nat.c