aboutsummaryrefslogtreecommitdiff
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
commitca1fa5eef2912262a0a33875e9a23f2e79a72328 (patch)
tree94a627f6329fbc78155eef2942664819d520e394 /gdb/amd64-fbsd-nat.c
parentUse amd64_target_description to get tdesc_amd64 (diff)
downloadbinutils-gdb-ca1fa5eef2912262a0a33875e9a23f2e79a72328.tar.gz
binutils-gdb-ca1fa5eef2912262a0a33875e9a23f2e79a72328.tar.bz2
binutils-gdb-ca1fa5eef2912262a0a33875e9a23f2e79a72328.zip
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 <yao.qi@linaro.org> * 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.
Diffstat (limited to 'gdb/amd64-fbsd-nat.c')
-rw-r--r--gdb/amd64-fbsd-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/amd64-fbsd-nat.c b/gdb/amd64-fbsd-nat.c
index f3ddbdd3d92..a22b82bb1b5 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. */