* lib/gdb.exp (using_fission): New proc.

* gdb.base/info-macros.exp: Skip test if using Fission.
This commit is contained in:
Doug Evans 2013-09-16 23:59:02 +00:00
parent 0295a32e39
commit a587b477f2
3 changed files with 19 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2013-09-16 Doug Evans <dje@google.com>
* 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 <sergiodj@redhat.com>

View File

@ -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

View File

@ -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