This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Changes to signed char and unsigned char handling
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: drow at false dot org
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 5 Sep 2007 00:40:09 +0200 (CEST)
- Subject: Re: [RFC] Changes to signed char and unsigned char handling
- References: <20070705135402.GA4300@caradoc.them.org> <20070825011757.GA15793@caradoc.them.org> <20070903175312.GM12440@caradoc.them.org>
> Date: Mon, 3 Sep 2007 13:53:12 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> On Fri, Aug 24, 2007 at 09:17:57PM -0400, Daniel Jacobowitz wrote:
> > Here's option 1 instead:
> >
> > 1. Make vector types special. Treat arrays of single byte integers
> > as characters, like before, unless they occur in a vector type. This
> > is reasonable, but tricky to implement.
> >
> > It restores the historic behavior for unsigned char and signed char.
> > Only the behavior of vector registers has changed. You basically
> > never want to print these as strings, but since I had already
> > implemented print/s I kept it.
>
> Mark, did you want to look at this revised approach? I think it
> will satisfy everyone; I'd like to include it in 6.7, if so.
>
> http://sourceware.org/ml/gdb-patches/2007-08/msg00467.html
Bleah! It was my intention to test this new diff, and recheck my
sparc machine to see why your first diff caused me so many problems,
but I haven't found the time to do either.
But this diff makes much more sense to me, so feel free to get it in.
Mark