X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Farch%2Fi386.c;h=099a20b98a27cffb9aec190446b27e814fb627d0;hb=1ee1a363454d88a87ad2ade7530b2a7fb670021e;hp=d3e1eb90e0f578cd3978620b2f1eda37229f728b;hpb=e2882c85786571175a0b0bfc3bcd2f14620b1ea3;p=deliverable%2Fbinutils-gdb.git
diff --git a/gdb/arch/i386.c b/gdb/arch/i386.c
index d3e1eb90e0..099a20b98a 100644
--- a/gdb/arch/i386.c
+++ b/gdb/arch/i386.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2017-2018 Free Software Foundation, Inc.
+/* Copyright (C) 2017-2020 Free Software Foundation, Inc.
This file is part of GDB.
@@ -15,9 +15,10 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see . */
+#include "gdbsupport/common-defs.h"
#include "i386.h"
-#include "tdesc.h"
-#include "x86-xstate.h"
+#include "gdbsupport/tdesc.h"
+#include "gdbsupport/x86-xstate.h"
#include
#include "../features/i386/32bit-core.c"
@@ -27,11 +28,12 @@
#include "../features/i386/32bit-avx512.c"
#include "../features/i386/32bit-mpx.c"
#include "../features/i386/32bit-pkeys.c"
+#include "../features/i386/32bit-segments.c"
/* Create i386 target descriptions according to XCR0. */
target_desc *
-i386_create_target_description (uint64_t xcr0, bool is_linux)
+i386_create_target_description (uint64_t xcr0, bool is_linux, bool segments)
{
target_desc *tdesc = allocate_target_description ();
@@ -52,6 +54,9 @@ i386_create_target_description (uint64_t xcr0, bool is_linux)
if (is_linux)
regnum = create_feature_i386_32bit_linux (tdesc, regnum);
+ if (segments)
+ regnum = create_feature_i386_32bit_segments (tdesc, regnum);
+
if (xcr0 & X86_XSTATE_AVX)
regnum = create_feature_i386_32bit_avx (tdesc, regnum);