From ca1fa5eef2912262a0a33875e9a23f2e79a72328 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Mon, 4 Sep 2017 11:33:56 +0100 Subject: Use i386_target_description to get tdesc_i386 GDB can call function i386_target_description to get the right target description rather than tdesc_i386 gdb: 2017-09-04 Yao Qi * amd64-fbsd-nat.c (amd64fbsd_read_description): Call i386_target_description. * i386-fbsd-nat.c (i386fbsd_read_description): Call i386_target_description. * i386-tdep.c (i386_gdbarch_init): Likewise. --- gdb/amd64-fbsd-nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/amd64-fbsd-nat.c') diff --git a/gdb/amd64-fbsd-nat.c b/gdb/amd64-fbsd-nat.c index f3ddbdd..a22b82b 100644 --- a/gdb/amd64-fbsd-nat.c +++ b/gdb/amd64-fbsd-nat.c @@ -181,7 +181,7 @@ amd64fbsd_read_description (struct target_ops *ops) if (is64) return amd64_target_description (X86_XSTATE_SSE_MASK); else - return tdesc_i386; + return i386_target_description (X86_XSTATE_SSE_MASK); } /* Provide a prototype to silence -Wmissing-prototypes. */ -- cgit v1.1