aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2004-08-23 13:04:03 +0000
committerMichael Chastain <mec@google.com>2004-08-23 13:04:03 +0000
commitd782e0bfb0a24a2bf10d4b0b3e9542959b9a8bd3 (patch)
tree766b09e4c3c41f0c9cf85ddca0ff7034ff099c33 /gdb/testsuite
parent96033e836e76ffb1f7bfb2f03333d157ec7e7907 (diff)
downloadgdb-d782e0bfb0a24a2bf10d4b0b3e9542959b9a8bd3.zip
gdb-d782e0bfb0a24a2bf10d4b0b3e9542959b9a8bd3.tar.gz
gdb-d782e0bfb0a24a2bf10d4b0b3e9542959b9a8bd3.tar.bz2
2004-08-23 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/whatis.c: Remove conditional disabling of "signed". * gdb.base/whatis.exp: Remove signed_keyword_not_used.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/whatis.c6
-rw-r--r--gdb/testsuite/gdb.base/whatis.exp19
3 files changed, 9 insertions, 21 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 6633609..af45799 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2004-08-23 Michael Chastain <mec.gnu@mindspring.com>
+ * gdb.base/whatis.c: Remove conditional disabling of "signed".
+ * gdb.base/whatis.exp: Remove signed_keyword_not_used.
+
+2004-08-23 Michael Chastain <mec.gnu@mindspring.com>
+
* gdb.base/whatis.c: Add copyright notice.
2004-08-20 Mark Kettenis <kettenis@gnu.org>
diff --git a/gdb/testsuite/gdb.base/whatis.c b/gdb/testsuite/gdb.base/whatis.c
index 4728b77..7d4a647 100644
--- a/gdb/testsuite/gdb.base/whatis.c
+++ b/gdb/testsuite/gdb.base/whatis.c
@@ -1,6 +1,6 @@
/* This test program is part of GDB, the GNU debugger.
- Copyright 1992, 1993, 1994, 1997, 1999
+ Copyright 1992, 1993, 1994, 1997, 1999, 2004
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -27,10 +27,6 @@
* First the basic C types.
*/
-#if !(defined (__STDC__) || defined (_AIX))
-#define signed /**/
-#endif
-
char v_char;
signed char v_signed_char;
unsigned char v_unsigned_char;
diff --git a/gdb/testsuite/gdb.base/whatis.exp b/gdb/testsuite/gdb.base/whatis.exp
index 98af77a..9b41d6a 100644
--- a/gdb/testsuite/gdb.base/whatis.exp
+++ b/gdb/testsuite/gdb.base/whatis.exp
@@ -1,5 +1,5 @@
-# Copyright 1988, 1990, 1991, 1992, 1994, 1995, 1996, 1997, 1999, 2002, 2003
-# Free Software Foundation, Inc.
+# Copyright 1988, 1990, 1991, 1992, 1994, 1995, 1996, 1997, 1999, 2002,
+# 2003, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -15,9 +15,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-# Please email any bugs, comments, and/or additions to this file to:
-# bug-gdb@prep.ai.mit.edu
-
# This file was written by Rob Savoye. (rob@cygnus.com)
if $tracelevel {
@@ -75,19 +72,9 @@ gdb_test "whatis v_char" \
"type = (unsigned char|char)" \
"whatis char"
-# If we did not use the signed keyword when compiling the file, don't
-# expect GDB to know that char is signed.
-if { $hp_cc_compiler || $hp_aCC_compiler } {
- set signed_keyword_not_used 1
-}
-if $signed_keyword_not_used then {
- set signed_char "char"
-} else {
- set signed_char "signed char"
-}
if {!$gcc_compiled} then { setup_xfail "mips-sgi-irix*" }
gdb_test "whatis v_signed_char" \
- "type = $signed_char" \
+ "type = (signed char|char)" \
"whatis signed char"
gdb_test "whatis v_unsigned_char" \