* lib/prelink-support.exp (prelink_yes): Flag test as unsupported if
authorDoug Evans <dje@google.com>
Fri, 16 Aug 2013 17:44:22 +0000 (17:44 +0000)
committerDoug Evans <dje@google.com>
Fri, 16 Aug 2013 17:44:22 +0000 (17:44 +0000)
prelink complains about an unhandled DWARF version.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/prelink-support.exp

index 4a7663d..661042e 100644 (file)
@@ -1,3 +1,8 @@
+2013-08-16  Doug Evans  <dje@google.com>
+
+       * lib/prelink-support.exp (prelink_yes): Flag test as unsupported if
+       prelink complains about an unhandled DWARF version.
+
 2013-08-14  Cary Coutant  <ccoutant@google.com>
 
        * boards/fission.exp: Add -fdebug-types-section to debug_flags.
index e61811b..bd10017 100644 (file)
@@ -292,6 +292,11 @@ proc prelink_yes {arg {name ""}} {
        xfail $test
        return 0
     }
+    if {$result == 1 && [regexp {DWARF [^\r\n]* unhandled} $output]} {
+       # Prelink didn't understand the version of dwarf present.
+       unsupported "$test (dwarf version unhandled)"
+       return 0
+    }
     if {$result == 0 && $output == ""} {
        pass $test
        return 1