From 70cc1c235fe2b3fde70b91c46158531c38896217 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 16 Aug 2013 17:44:22 +0000 Subject: [PATCH] * lib/prelink-support.exp (prelink_yes): Flag test as unsupported if prelink complains about an unhandled DWARF version. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/lib/prelink-support.exp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 4a7663d3370..661042e340b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-08-16 Doug Evans + + * lib/prelink-support.exp (prelink_yes): Flag test as unsupported if + prelink complains about an unhandled DWARF version. + 2013-08-14 Cary Coutant * boards/fission.exp: Add -fdebug-types-section to debug_flags. diff --git a/gdb/testsuite/lib/prelink-support.exp b/gdb/testsuite/lib/prelink-support.exp index e61811bbd99..bd10017d86c 100644 --- a/gdb/testsuite/lib/prelink-support.exp +++ b/gdb/testsuite/lib/prelink-support.exp @@ -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 -- 2.30.2