This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Skip info-macros.exp if compiling with Fission


Fission doesn't support macros yet.
This patch skips the test.

Regression tested on amd64-linux with/without fission.

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.

Index: lib/gdb.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
retrieving revision 1.244
diff -u -p -r1.244 gdb.exp
--- lib/gdb.exp	27 Aug 2013 00:19:02 -0000	1.244
+++ lib/gdb.exp	16 Sep 2013 23:58:27 -0000
@@ -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
Index: gdb.base/info-macros.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/info-macros.exp,v
retrieving revision 1.7
diff -u -p -r1.7 info-macros.exp
--- gdb.base/info-macros.exp	27 Jun 2013 18:51:31 -0000	1.7
+++ gdb.base/info-macros.exp	16 Sep 2013 23:58:27 -0000
@@ -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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]