Change gdbarch_wchar_bit for AArch64 and ARM
authorYao Qi <yao.qi@linaro.org>
Tue, 25 Apr 2017 14:15:54 +0000 (15:15 +0100)
committerYao Qi <yao.qi@linaro.org>
Tue, 25 Apr 2017 14:15:54 +0000 (15:15 +0100)
commitd581dda88162831ebbd0757312fa93681d945327
treecb1bc42ce5cbb86d9b0e8410369402555fe36fcd
parent0348fd79d4c32243d91e8a55f20f408a9b4ec20d
Change gdbarch_wchar_bit for AArch64 and ARM

The size of wchar_t on AArch64 and ARM is 4-byte, so we can use the
default value (4*TARGET_CHAR_BIT).

This patch fixes some fails in gdb.cp/wide_char_types.exp on
aarch64-linux.

gdb:

2017-04-25  Yao Qi  <yao.qi@linaro.org>

* aarch64-tdep.c (aarch64_gdbarch_init): Don't call
set_gdbarch_wchar_bit.
* arm-tdep.c (arm_gdbarch_init): Likewise.
gdb/ChangeLog
gdb/aarch64-tdep.c
gdb/arm-tdep.c
This page took 0.026003 seconds and 4 git commands to generate.