From 2434b0199ddcd9419c55742552953b0a79d00ebc Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Mon, 4 Sep 2017 11:33:56 +0100 Subject: 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 * 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. --- gdb/amd64-darwin-tdep.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/amd64-darwin-tdep.c') diff --git a/gdb/amd64-darwin-tdep.c b/gdb/amd64-darwin-tdep.c index be26d9e..81dba82 100644 --- a/gdb/amd64-darwin-tdep.c +++ b/gdb/amd64-darwin-tdep.c @@ -29,6 +29,7 @@ #include "objfiles.h" #include "i387-tdep.h" +#include "x86-xstate.h" #include "amd64-tdep.h" #include "osabi.h" #include "ui-out.h" @@ -99,7 +100,8 @@ x86_darwin_init_abi_64 (struct gdbarch_info info, struct gdbarch *gdbarch) { struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); - amd64_init_abi (info, gdbarch, tdesc_amd64); + amd64_init_abi (info, gdbarch, + amd64_target_description (X86_XSTATE_SSE_MASK)); tdep->struct_return = reg_struct_return; -- cgit v1.1