diff options
author | Michael Chastain <mec@google.com> | 2003-11-29 06:56:06 +0000 |
---|---|---|
committer | Michael Chastain <mec@google.com> | 2003-11-29 06:56:06 +0000 |
commit | f81f93f75ea7b6775234f51faab021a73a1ff80b (patch) | |
tree | 2246dfcb48712319ff5c7da99c42b14e619917aa /gdb/testsuite/gdb.base/constvars.exp | |
parent | 9663f234c1f71bd29a0576af25df395440f11b88 (diff) | |
download | gdb-f81f93f75ea7b6775234f51faab021a73a1ff80b.zip gdb-f81f93f75ea7b6775234f51faab021a73a1ff80b.tar.gz gdb-f81f93f75ea7b6775234f51faab021a73a1ff80b.tar.bz2 |
2003-11-28 Michael Chastain <mec.gnu@mindspring.com>
Partial fix for PR testsuite/1456.
* gdb.base/constvars.exp: Replace references to gcc_compiled with
calls to test_compiler_info.
Diffstat (limited to 'gdb/testsuite/gdb.base/constvars.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/constvars.exp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.base/constvars.exp b/gdb/testsuite/gdb.base/constvars.exp index 8a6b60b..9008624 100644 --- a/gdb/testsuite/gdb.base/constvars.exp +++ b/gdb/testsuite/gdb.base/constvars.exp @@ -82,9 +82,7 @@ if ![runto_main] then { get_debug_format proc local_compiler_xfail_check { } { - global gcc_compiled; - - if {$gcc_compiled == 2} then { + if { [test_compiler_info gcc-2-*] } then { if { ![test_debug_format "HP"] \ && ![test_debug_format "DWARF 2"] } then { setup_xfail "*-*-*" @@ -128,7 +126,7 @@ send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $" # test function parameters local_compiler_xfail_check -if {$gcc_compiled == 3 && [test_debug_format "stabs"]} then { +if { [test_compiler_info gcc-3-*] && [test_debug_format "stabs"] } then { # With stabs, even GCC 3 does not get the const char arguments correct. setup_xfail "*-*-*" } @@ -144,8 +142,6 @@ gdb_expect { # test vars and pointers proc do_constvar_tests {} { - global gcc_compiled - gdb_test "print lave" " = 66 'B'" gdb_test "ptype lave" "type = char" gdb_test "print lavish" " = 10 '\\\\n'" @@ -285,7 +281,7 @@ proc do_constvar_tests {} { gdb_test "ptype locust" "type = double \\* const" local_compiler_xfail_check - if {$gcc_compiled == 3 && [test_debug_format "stabs"]} then { + if { [test_compiler_info gcc-3-*] && [test_debug_format "stabs"] } then { # With stabs, even GCC 3 does not get the constant structure member # correct. setup_xfail "*-*-*" |