mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-30 05:14:18 +08:00
* hpread.c (hpread_type_translate): Handle T_UNS_LONG types with
lengths other than 32bits (HP C 9.69 represents an "unsigned char" as an T_UNS_LONG with length 8).
This commit is contained in:
@ -1137,7 +1137,13 @@ hpread_type_translate (typep)
|
||||
case T_LONG:
|
||||
return FT_LONG;
|
||||
case T_UNS_LONG:
|
||||
return FT_UNSIGNED_LONG;
|
||||
if (typep.dntti.bitlength <= 8)
|
||||
return FT_UNSIGNED_CHAR;
|
||||
if (typep.dntti.bitlength <= 16)
|
||||
return FT_UNSIGNED_SHORT;
|
||||
if (typep.dntti.bitlength <= 32)
|
||||
return FT_UNSIGNED_LONG;
|
||||
return FT_UNSIGNED_LONG_LONG;
|
||||
case T_UNS_INT:
|
||||
if (typep.dntti.bitlength <= 8)
|
||||
return FT_UNSIGNED_CHAR;
|
||||
|
Reference in New Issue
Block a user