aboutsummaryrefslogtreecommitdiff
path: root/gdb/amd64-sol2-tdep.c
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2017-09-04 11:33:56 +0100
committerYao Qi <yao.qi@linaro.org>2017-09-04 11:33:56 +0100
commit2434b0199ddcd9419c55742552953b0a79d00ebc (patch)
tree77cd01ee10ddf2d54e4a43e43fdd41a22700919f /gdb/amd64-sol2-tdep.c
parent0860c437cbe4efd8752531d0464007f448fc8274 (diff)
downloadgdb-2434b0199ddcd9419c55742552953b0a79d00ebc.zip
gdb-2434b0199ddcd9419c55742552953b0a79d00ebc.tar.gz
gdb-2434b0199ddcd9419c55742552953b0a79d00ebc.tar.bz2
Use amd64_target_description to get tdesc_amd64
This patch changes amd64-*-tdep.c files to use function amd64_target_description to get the right target description rather than use the variable tdesd_amd64. gdb: 2017-09-04 Yao Qi <yao.qi@linaro.org> * amd64-darwin-tdep.c: Include "x86-xstate.h". (x86_darwin_init_abi_64): Call amd64_target_description. * amd64-dicos-tdep.c: Likewise. * amd64-fbsd-nat.c: Likewise. * amd64-fbsd-tdep.c: Likewise. * amd64-nbsd-tdep.c: Likewise. * amd64-obsd-tdep.c: Likewise. * amd64-sol2-tdep.c: Likewise. * amd64-windows-tdep.c: Likewise. * amd64-tdep.h (tdesc_amd64): Remove the declaration.
Diffstat (limited to 'gdb/amd64-sol2-tdep.c')
-rw-r--r--gdb/amd64-sol2-tdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/amd64-sol2-tdep.c b/gdb/amd64-sol2-tdep.c
index ca474db..1ae2edc 100644
--- a/gdb/amd64-sol2-tdep.c
+++ b/gdb/amd64-sol2-tdep.c
@@ -28,6 +28,7 @@
#include "sol2-tdep.h"
#include "amd64-tdep.h"
+#include "x86-xstate.h"
#include "solib-svr4.h"
/* Mapping between the general-purpose registers in gregset_t format
@@ -99,7 +100,8 @@ amd64_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
tdep->gregset_num_regs = ARRAY_SIZE (amd64_sol2_gregset_reg_offset);
tdep->sizeof_gregset = 28 * 8;
- amd64_init_abi (info, gdbarch, tdesc_amd64);
+ amd64_init_abi (info, gdbarch,
+ amd64_target_description (X86_XSTATE_SSE_MASK));
tdep->sigtramp_p = amd64_sol2_sigtramp_p;
tdep->sigcontext_addr = amd64_sol2_mcontext_addr;