diff options
author | Tom Tromey <tromey@redhat.com> | 2010-06-21 19:49:19 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-06-21 19:49:19 +0000 |
commit | 75079b2b314a0c1a9a70a5786098559595f56c7c (patch) | |
tree | 9bf60c410f969614a75c7e76a16db705e2616610 | |
parent | 29e66501f7ce527c9abc01061836d37960712546 (diff) | |
download | gdb-75079b2b314a0c1a9a70a5786098559595f56c7c.zip gdb-75079b2b314a0c1a9a70a5786098559595f56c7c.tar.gz gdb-75079b2b314a0c1a9a70a5786098559595f56c7c.tar.bz2 |
* dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
(dwarf_type_encoding_name): Likewise.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index de7d59b..dce4a93 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2010-06-21 Tom Tromey <tromey@redhat.com> + * dwarf2read.c (read_base_type): Handle DW_ATE_UTF. + (dwarf_type_encoding_name): Likewise. + +2010-06-21 Tom Tromey <tromey@redhat.com> + * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME. * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME. * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index f9abf0a..bab1fba 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -6212,6 +6212,11 @@ read_base_type (struct die_info *die, struct dwarf2_cu *cu) code = TYPE_CODE_CHAR; type_flags |= TYPE_FLAG_UNSIGNED; break; + case DW_ATE_UTF: + /* We just treat this as an integer and then recognize the + type by name elsewhere. */ + break; + default: complaint (&symfile_complaints, _("unsupported DW_AT_encoding: '%s'"), dwarf_type_encoding_name (encoding)); @@ -10402,6 +10407,9 @@ dwarf_type_encoding_name (unsigned enc) return "DW_ATE_unsigned_fixed"; case DW_ATE_decimal_float: return "DW_ATE_decimal_float"; + /* DWARF 4. */ + case DW_ATE_UTF: + return "DW_ATE_UTF"; /* HP extensions. */ case DW_ATE_HP_float80: return "DW_ATE_HP_float80"; |