summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/volatile.exp
diff options
context:
space:
mode:
authorMichael Chastain <mec.gnu@mindspring.com>2004-09-23 18:18:58 +0000
committerMichael Chastain <mec.gnu@mindspring.com>2004-09-23 18:18:58 +0000
commit190e2f916b9658702ad050cffae35f287bb6753e (patch)
treecae7d39e8915b3de58f6b2802adcebf3783d1332 /gdb/testsuite/gdb.base/volatile.exp
parent4cddd9efd7c8297fa46728b5440b4571493c5606 (diff)
downloadgdb-190e2f916b9658702ad050cffae35f287bb6753e.tar.gz
2004-09-23 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/constvars.exp (local_compiler_xfail_check_2): New proc. Accept both gcc 3.x.x and gcc 4.x.x. * gdb.base/volatile.exp (local_compiler_xfail_check_2): Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.base/volatile.exp')
-rw-r--r--gdb/testsuite/gdb.base/volatile.exp22
1 files changed, 14 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.base/volatile.exp b/gdb/testsuite/gdb.base/volatile.exp
index c12e3d88eae..b6623f8ce9a 100644
--- a/gdb/testsuite/gdb.base/volatile.exp
+++ b/gdb/testsuite/gdb.base/volatile.exp
@@ -14,9 +14,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
-
# Written by Satish Pai <pai@apollo.hp.com> 1997-07-07
# In the spirit of constvars.exp: added volatile, const-volatile stuff.
@@ -74,6 +71,9 @@ if ![runto_main] then {
get_debug_format
+# Many tests xfail with gcc 2 -gstabs+.
+# TODO: check out the hp side of this.
+
proc local_compiler_xfail_check { } {
if { [test_compiler_info gcc-2-*] } then {
if { ![test_debug_format "HP"] \
@@ -88,6 +88,16 @@ proc local_compiler_xfail_check { } {
}
}
+# A few tests still xfail with gcc 3 -gstabs+ and gcc 4 -gstabs+.
+
+proc local_compiler_xfail_check_2 { } {
+ if { [test_compiler_info gcc-3-*] || [test_compiler_info gcc-4-*] } {
+ if { [test_debug_format "stabs" ] } {
+ setup_xfail "*-*-*"
+ }
+ }
+}
+
send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $"
send_gdb "cont\n"
@@ -248,11 +258,7 @@ gdb_test "ptype vendor" "type = const volatile unsigned char \\* const volatile.
# test function parameters
local_compiler_xfail_check
-if { [test_compiler_info gcc-3-*] && [test_debug_format "stabs"] } then {
- # For reasons unknown, GCC 3 with stabs mangles several cv-qualified
- # arguments to this function.
- setup_xfail "*-*-*"
-}
+local_compiler_xfail_check_2
send_gdb "ptype qux2\n"
gdb_expect {
-re "type = int \\(volatile unsigned char, const volatile int, volatile short( int)?, volatile long( int)? \\*, float \\* volatile, const volatile signed char \\* const volatile\\).*$gdb_prompt $" {