From: Doug Evans Date: Mon, 16 Sep 2013 23:59:02 +0000 (+0000) Subject: * lib/gdb.exp (using_fission): New proc. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a587b477f27c2eb8cd19e55e3cc415984a85720c;p=binutils-gdb.git * lib/gdb.exp (using_fission): New proc. * gdb.base/info-macros.exp: Skip test if using Fission. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index b4d98aa9521..328bdf372f9 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2013-09-16 Doug Evans + * lib/gdb.exp (using_fission): New proc. + * gdb.base/info-macros.exp: Skip test if using Fission. + * gdb.base/break-interp.exp: Fix indentation. 2013-09-16 Sergio Durigan Junior diff --git a/gdb/testsuite/gdb.base/info-macros.exp b/gdb/testsuite/gdb.base/info-macros.exp index ed750c1eec5..46861769b21 100644 --- a/gdb/testsuite/gdb.base/info-macros.exp +++ b/gdb/testsuite/gdb.base/info-macros.exp @@ -15,6 +15,12 @@ standard_testfile .c +# Fission doesn't support macros yet. Bug 15954. +if [using_fission] { + untested ${testfile}.exp + return -1 +} + get_compiler_info if ![test_compiler_info gcc*] { untested ${testfile}.exp diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 9b319e23533..05e66eff1c4 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -4473,5 +4473,15 @@ proc run_on_host { test program args } { } } +# Return non-zero if "board_info debug_flags" mentions Fission. +# http://gcc.gnu.org/wiki/DebugFission +# Fission doesn't support everything yet. +# This supports working around bug 15954. + +proc using_fission { } { + set debug_flags [board_info [target_info name] debug_flags] + return [regexp -- "-gsplit-dwarf" $debug_flags] +} + # Always load compatibility stuff. load_lib future.exp