This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/21323] GDB thinks char16_t and char32_t are signed in C++
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 29 Mar 2017 13:12:59 +0000
- Subject: [Bug c++/21323] GDB thinks char16_t and char32_t are signed in C++
- Auto-submitted: auto-generated
- References: <bug-21323-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21323
Pedro Alves <palves at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |palves at redhat dot com
--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
Hmm, thanks. Should be easy to fix. I see:
/* Allocate a TYPE_CODE_INT type structure associated with GDBARCH.
BIT is the type size in bits. If UNSIGNED_P is non-zero, set
the type's TYPE_UNSIGNED flag. NAME is the type name. */
struct type *
arch_integer_type (struct gdbarch *gdbarch,
int bit, int unsigned_p, const char *name)
{
...
}
static void *
gdbtypes_post_init (struct gdbarch *gdbarch)
{
...
/* Wide character types. */
builtin_type->builtin_char16
= arch_integer_type (gdbarch, 16, 0, "char16_t");
builtin_type->builtin_char32
= arch_integer_type (gdbarch, 32, 0, "char32_t");
--
You are receiving this mail because:
You are on the CC list for the bug.