summaryrefslogtreecommitdiffstats
path: root/gdb/testsuite/lib/gdb.exp
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-09-27 21:35:56 +0000
committerMichael Snyder <msnyder@vmware.com>2001-09-27 21:35:56 +0000
commitb55a47712d086798248e912a18b8a4e4419e2c83 (patch)
tree08529043d28718a28714271c72e398dd39593d36 /gdb/testsuite/lib/gdb.exp
parent56e2d25ab5b69584198204090fe049e920cd57db (diff)
downloadppe42-binutils-b55a47712d086798248e912a18b8a4e4419e2c83.tar.gz
ppe42-binutils-b55a47712d086798248e912a18b8a4e4419e2c83.zip
2001-09-27 Michael Snyder <msnyder@redhat.com>
* lib/gdb.exp (test_debug_format): New proc. (setup_xfail_format): Use new proc test_debug_format. * gdb.base/constvars.exp (local_compiler_xfail_check): New proc; use new service proc test_debug_format. Replace all other "gcc_compiled" tests with this test. * gdb.base/volatile.exp (local_compiler_xfail_check): New proc; use new service proc test_debug_format. Replace all other "gcc_compiled" tests with this test.
Diffstat (limited to 'gdb/testsuite/lib/gdb.exp')
-rw-r--r--gdb/testsuite/lib/gdb.exp14
1 files changed, 11 insertions, 3 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 3d1ef7174d..6388877ee0 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -1424,15 +1424,23 @@ proc get_debug_format { } {
# expected to fail, 0 otherwise (or if it is unknown). Must have
# previously called get_debug_format.
-proc setup_xfail_format { format } {
+proc test_debug_format { format } {
global debug_format
if [string match $debug_format $format] then {
- setup_xfail "*-*-*"
return 1;
}
return 0
-}
+}
+
+proc setup_xfail_format { format } {
+ set ret [test_debug_format format];
+
+ if [expr $ret != 0] then {
+ setup_xfail "*-*-*"
+ }
+ return $ret;
+}
proc gdb_step_for_stub { } {
global gdb_prompt;
OpenPOWER on IntegriCloud