This is the mail archive of the gdb-patches@sources.redhat.com 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] |
Neil Booth wrote:Michael Snyder wrote:-> There seem to be some tests in the testsuite that are > based on the assumption that chars are signed, and that > will fail if they are unsigned.
That isn't correct.
sizeof.exp's purpose in life is to check that GDB and the running program agree about the funamental points of life (such as the sizeof an int or the signof char).> Eg: > sizeof.exp: check valueof ((int) (char)) -1 == -1 > (prints 255 if char == unsigned)
That would be silly :-) The failure strongly suggests that something is skewiff.> pointers.exp: ptype pC > (outputs "unsigned char *" if char == unsigned) > > Any thoughts? Should these be regularized to accept unsigned? > Should it be based on a configure variable?I'd pass -fsigned-char; that's done in some other tests.
To gcc? Problem is, what if it isn't gcc? As eg. Irix cc?
Michael, I think you might have a GDB bug. Andrew
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |