From: Daniel Jacobowitz <drow@false.org>
To: gdb-patches@sources.redhat.com
Subject: [rfa] C++ testsuite fix for unsigned char
Date: Sat, 28 Feb 2004 17:51:00 -0000 [thread overview]
Message-ID: <20040228175120.GA16332@nevyn.them.org> (raw)
ARM targets, by default, have char as an unsigned type. Therefore this test
prints out 194 instead of -62. OK to commit?
By the way, this test would be invalid C since it relies on the behavior of
signed overflow. I'm not sure about C++ but I suspect it's the same.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2004-02-28 Daniel Jacobowitz <drow@mvista.com>
* gdb.cp/ctti.exp: Handle unsigned char type.
Index: gdb/testsuite/gdb.cp/ctti.exp
===================================================================
RCS file: /big/fsf/rsync/src-cvs/src/gdb/testsuite/gdb.cp/ctti.exp,v
retrieving revision 1.5
diff -u -p -r1.5 ctti.exp
--- gdb/testsuite/gdb.cp/ctti.exp 11 Feb 2004 14:01:25 -0000 1.5
+++ gdb/testsuite/gdb.cp/ctti.exp 28 Feb 2004 15:11:30 -0000
@@ -76,7 +76,7 @@ if ![runto_main] then {
gdb_breakpoint [gdb_get_line_number "marker add1"]
gdb_continue_to_breakpoint "marker add1"
-gdb_test "print c" "\\$\[0-9\]+ = -62 .*"
+gdb_test "print c" "\\$\[0-9\]+ = (-62|194) .*"
gdb_test "print f" "\\$\[0-9\]+ = 9"
gdb_test "print i" "\\$\[0-9\]+ = 4"
next reply other threads:[~2004-02-28 17:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-28 17:51 Daniel Jacobowitz [this message]
2004-02-28 23:15 Michael Elizabeth Chastain
2004-02-29 17:10 ` Daniel Jacobowitz
2004-02-29 22:15 Michael Elizabeth Chastain
2004-02-29 22:35 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040228175120.GA16332@nevyn.them.org \
--to=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox