diff options
author | Yao Qi <yao.qi@linaro.org> | 2017-09-04 11:33:56 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2017-09-04 11:33:56 +0100 |
commit | ca1fa5eef2912262a0a33875e9a23f2e79a72328 (patch) | |
tree | 94a627f6329fbc78155eef2942664819d520e394 /gdb/i386-tdep.c | |
parent | 2434b0199ddcd9419c55742552953b0a79d00ebc (diff) | |
download | gdb-ca1fa5eef2912262a0a33875e9a23f2e79a72328.zip gdb-ca1fa5eef2912262a0a33875e9a23f2e79a72328.tar.gz gdb-ca1fa5eef2912262a0a33875e9a23f2e79a72328.tar.bz2 |
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/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index b1e5afd..9d0dd3d 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -8549,7 +8549,7 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) /* Get the x86 target description from INFO. */ tdesc = info.target_desc; if (! tdesc_has_registers (tdesc)) - tdesc = tdesc_i386; + tdesc = i386_target_description (X86_XSTATE_SSE_MASK); tdep->tdesc = tdesc; tdep->num_core_regs = I386_NUM_GREGS + I387_NUM_REGS; |