• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Révisiond581dda88162831ebbd0757312fa93681d945327 (tree)
l'heure2017-04-25 23:15:54
AuteurYao Qi <yao.qi@lina...>
CommiterYao Qi

Message de Log

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.

Change Summary

Modification

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
1+2017-04-25 Yao Qi <yao.qi@linaro.org>
2+
3+ * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
4+ set_gdbarch_wchar_bit.
5+ * arm-tdep.c (arm_gdbarch_init): Likewise.
6+
17 2017-04-25 Pedro Alves <palves@redhat.com>
28
39 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
--- a/gdb/aarch64-tdep.c
+++ b/gdb/aarch64-tdep.c
@@ -2977,7 +2977,6 @@ aarch64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
29772977 set_gdbarch_long_long_bit (gdbarch, 64);
29782978 set_gdbarch_ptr_bit (gdbarch, 64);
29792979 set_gdbarch_char_signed (gdbarch, 0);
2980- set_gdbarch_wchar_bit (gdbarch, 64);
29812980 set_gdbarch_wchar_signed (gdbarch, 0);
29822981 set_gdbarch_float_format (gdbarch, floatformats_ieee_single);
29832982 set_gdbarch_double_format (gdbarch, floatformats_ieee_double);
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -9409,7 +9409,6 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
94099409 set_gdbarch_wchar_signed (gdbarch, 0);
94109410 else
94119411 set_gdbarch_wchar_signed (gdbarch, 1);
9412- set_gdbarch_wchar_bit (gdbarch, 32);
94139412
94149413 /* Note: for displaced stepping, this includes the breakpoint, and one word
94159414 of additional scratch space. This setting isn't used for anything beside