diff options
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r-- | gdb/arm-tdep.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 5cc3f40..c8fabfb 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -9404,6 +9404,13 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) /* On ARM targets char defaults to unsigned. */ set_gdbarch_char_signed (gdbarch, 0); + /* wchar_t is unsigned under the AAPCS. */ + if (tdep->arm_abi == ARM_ABI_AAPCS) + set_gdbarch_wchar_signed (gdbarch, 0); + else + set_gdbarch_wchar_signed (gdbarch, 1); + set_gdbarch_wchar_bit (gdbarch, 32); + /* Note: for displaced stepping, this includes the breakpoint, and one word of additional scratch space. This setting isn't used for anything beside displaced stepping at present. */ |