* FYI: support DW_ATE_UTF
@ 2010-06-21 19:49 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2010-06-21 19:49 UTC (permalink / raw)
To: gdb-patches
I'm checking this in.
Jakub recently changed GCC to emit DW_ATE_UTF in some cases.
This patch updates GDB to follow suit.
Built and regtested on x86-64 (compile farm).
Tom
2010-06-21 Tom Tromey <tromey@redhat.com>
* dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
(dwarf_type_encoding_name): Likewise.
Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.401
diff -u -r1.401 dwarf2read.c
--- dwarf2read.c 21 Jun 2010 18:01:50 -0000 1.401
+++ dwarf2read.c 21 Jun 2010 19:43:58 -0000
@@ -6212,6 +6212,11 @@
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 @@
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";
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-06-21 19:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-21 19:49 FYI: support DW_ATE_UTF Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).