This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Signed/unsigned character arrays are not strings


> 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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]