mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
* dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
for char and unsigned char types of Ada compilation units.
* ada-lang.c (ada_is_character_type): Always return true if
the type code is TYPE_CODE_CHAR.
This commit is contained in:
@@ -5007,11 +5007,11 @@ read_base_type (struct die_info *die, struct dwarf2_cu *cu)
|
||||
type_flags |= TYPE_FLAG_UNSIGNED;
|
||||
break;
|
||||
case DW_ATE_signed_char:
|
||||
if (cu->language == language_m2)
|
||||
if (cu->language == language_ada && cu->language == language_m2)
|
||||
code = TYPE_CODE_CHAR;
|
||||
break;
|
||||
case DW_ATE_unsigned_char:
|
||||
if (cu->language == language_m2)
|
||||
if (cu->language == language_ada && cu->language == language_m2)
|
||||
code = TYPE_CODE_CHAR;
|
||||
type_flags |= TYPE_FLAG_UNSIGNED;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user