GNU Binutils with patches for OS216
Révision | d581dda88162831ebbd0757312fa93681d945327 (tree) |
---|---|
l'heure | 2017-04-25 23:15:54 |
Auteur | Yao Qi <yao.qi@lina...> |
Commiter | Yao Qi |
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.
@@ -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 | + | |
1 | 7 | 2017-04-25 Pedro Alves <palves@redhat.com> |
2 | 8 | |
3 | 9 | * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable) |
@@ -2977,7 +2977,6 @@ aarch64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) | ||
2977 | 2977 | set_gdbarch_long_long_bit (gdbarch, 64); |
2978 | 2978 | set_gdbarch_ptr_bit (gdbarch, 64); |
2979 | 2979 | set_gdbarch_char_signed (gdbarch, 0); |
2980 | - set_gdbarch_wchar_bit (gdbarch, 64); | |
2981 | 2980 | set_gdbarch_wchar_signed (gdbarch, 0); |
2982 | 2981 | set_gdbarch_float_format (gdbarch, floatformats_ieee_single); |
2983 | 2982 | set_gdbarch_double_format (gdbarch, floatformats_ieee_double); |
@@ -9409,7 +9409,6 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) | ||
9409 | 9409 | set_gdbarch_wchar_signed (gdbarch, 0); |
9410 | 9410 | else |
9411 | 9411 | set_gdbarch_wchar_signed (gdbarch, 1); |
9412 | - set_gdbarch_wchar_bit (gdbarch, 32); | |
9413 | 9412 | |
9414 | 9413 | /* Note: for displaced stepping, this includes the breakpoint, and one word |
9415 | 9414 | of additional scratch space. This setting isn't used for anything beside |