[PATCH] xstormy16-tdep.c: Set chars to unsigned

Corinna Vinschen vinschen@redhat.com
Wed Mar 26 09:13:00 GMT 2003


On Tue, Mar 25, 2003 at 06:24:07PM -0500, Andrew Cagney wrote:
> >print/d (int) (char) -1^M
> >$11 = 255^M
> 
> But were they normal before this patch?  I.e., did the patch affect this 
> test's results?

No, these tests returned the same results with and without my patch.

> If they didn't then there is a bug in the sizeof.exp test since it is 
> ment to check that GDB/target agree on the basics.

Just a guess:  The sizeof tests are using numerical constants.  The
charset tests are using character strings.  The evaluation is subtly
different in that the evaluation of character strings require the
target being active.  There's a part of interaction not required for
the tests used in sizeof.exp.

Corinna

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@redhat.com



More information about the Gdb-patches mailing list