]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PDB: add wchar/bool base types
authorHannes Domani <ssbssa@yahoo.de>
Mon, 18 Apr 2022 14:17:53 +0000 (16:17 +0200)
committerHannes Domani <ssbssa@yahoo.de>
Mon, 18 Apr 2022 14:27:58 +0000 (16:27 +0200)
gdb/windows-nat.c

index 8e1e179bf52987093777005f5d5bc16eb3d66a1b..4e37f382b22a79cbdd0e1c47dfe9c3264e507b81 100644 (file)
@@ -3492,6 +3492,8 @@ static type *get_pdb_type_cached (pdb_line_info *pli, DWORD type_index)
                  return ot->builtin_void;
                case 2: // signed char
                  return ot->builtin_signed_char;
+               case 3: // wchar
+                 return builtin_type (pli->objfile->arch ())->builtin_wchar;
                case 6: // signed short/int/long_long
                  if (length == 2)
                    return ot->builtin_short;
@@ -3516,6 +3518,8 @@ static type *get_pdb_type_cached (pdb_line_info *pli, DWORD type_index)
                  else if (length == 8)
                    return ot->builtin_double;
                  break;
+               case 10: // bool
+                 return builtin_type (pli->objfile->arch ())->builtin_bool;
                case 13: // signed long
                  return ot->builtin_long;
                case 14: // unsigned long