This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Signed/unsigned character arrays are not strings
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 25 Jan 2007 06:23:01 +0200
- Subject: Re: [RFC] Signed/unsigned character arrays are not strings
- References: <20070125015422.GA19113@host0.dyn.jankratochvil.net>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Thu, 25 Jan 2007 02:54:22 +0100
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
>
> currently all these types are printed as strings:
> char
> signed char
> unsigned char
> the patch will reduce the printed strings only to
> char
> and the signed/unsigned version gets printed as an array of byte values
> (characters). I hope nobody uses sign-specification for strings.
I must say I'm uneasy about this. Signedness could be random. What
will happen on platforms where `char' is unsigned by default?
Anyway, this change should probably be reflected in the manual, and
perhaps also in NEWS.
> Bugreported by Ulrich Drepper.
What bug? can you show it?