From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4877 invoked by alias); 28 Feb 2004 17:51:21 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4870 invoked from network); 28 Feb 2004 17:51:20 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 28 Feb 2004 17:51:20 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1Ax8cS-0004Fr-4E for ; Sat, 28 Feb 2004 12:51:20 -0500 Date: Sat, 28 Feb 2004 17:51:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: [rfa] C++ testsuite fix for unsigned char Message-ID: <20040228175120.GA16332@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.1i X-SW-Source: 2004-02/txt/msg00836.txt.bz2 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 * 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"