Teach GDB that wchar_t is a built-in type in C++ mode
[deliverable/binutils-gdb.git] / gdb / gdbtypes.c
index 6f3aeabc173e0bfc07cb6561cf403d979f41038d..dd3992cc7b6e4f73607b08f692d86a06b51660dd 100644 (file)
@@ -5204,10 +5204,12 @@ gdbtypes_post_init (struct gdbarch *gdbarch)
 
   /* Wide character types.  */
   builtin_type->builtin_char16
-    = arch_integer_type (gdbarch, 16, 0, "char16_t");
+    = arch_integer_type (gdbarch, 16, 1, "char16_t");
   builtin_type->builtin_char32
-    = arch_integer_type (gdbarch, 32, 0, "char32_t");
-       
+    = arch_integer_type (gdbarch, 32, 1, "char32_t");
+  builtin_type->builtin_wchar
+    = arch_integer_type (gdbarch, gdbarch_wchar_bit (gdbarch),
+                        !gdbarch_wchar_signed (gdbarch), "wchar_t");
 
   /* Default data/code pointer types.  */
   builtin_type->builtin_data_ptr
This page took 0.030958 seconds and 4 git commands to generate.