mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 13:27:26 +08:00
DisplayDWARF2 basic type encodings.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
1999-02-02 Nick Clifton <nickc@cygnus.com>
|
1999-02-02 Nick Clifton <nickc@cygnus.com>
|
||||||
|
|
||||||
|
* readelf.c (read_and_display_attr): Add display of basic type
|
||||||
|
encodings.
|
||||||
|
|
||||||
* binutils.texi: Fixed bug in readefl documentation.
|
* binutils.texi: Fixed bug in readefl documentation.
|
||||||
|
|
||||||
Mon Feb 1 12:38:01 1999 Catherine Moore <clm@cygnus.com>
|
Mon Feb 1 12:38:01 1999 Catherine Moore <clm@cygnus.com>
|
||||||
|
@ -4260,6 +4260,27 @@ read_and_display_attr (attribute, form, data, pointer_size)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case DW_AT_encoding:
|
||||||
|
switch (uvalue)
|
||||||
|
{
|
||||||
|
case DW_ATE_void: printf ("(void)"); break;
|
||||||
|
case DW_ATE_address: printf ("(machine address)"); break;
|
||||||
|
case DW_ATE_boolean: printf ("(boolean)"); break;
|
||||||
|
case DW_ATE_complex_float: printf ("(complex float)"); break;
|
||||||
|
case DW_ATE_float: printf ("(float)"); break;
|
||||||
|
case DW_ATE_signed: printf ("(signed)"); break;
|
||||||
|
case DW_ATE_signed_char: printf ("(signed char)"); break;
|
||||||
|
case DW_ATE_unsigned: printf ("(unsigned)"); break;
|
||||||
|
case DW_ATE_unsigned_char: printf ("(unsigned char)"); break;
|
||||||
|
default:
|
||||||
|
if (uvalue >= DW_ATE_lo_user
|
||||||
|
&& uvalue <= DW_ATE_hi_user)
|
||||||
|
printf ("(user defined type)");
|
||||||
|
else
|
||||||
|
printf ("(unknown type)");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user