From 40d1a503c43cda6c04a637972e5635d803f46cde Mon Sep 17 00:00:00 2001 From: Marcus Shawcroft Date: Thu, 17 Apr 2014 10:52:43 +0100 Subject: [PATCH] Drop prefix from unsupported source path. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/lib/gdb.exp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 7cc86f1fa4..13752efb3e 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-04-17 Marcus Shawcroft + + * lib/gdb.exp (gdb_compile_pthreads, gdb_compile_objc): + Drop prefix from unsupported source file path. + 2014-04-17 Yao Qi * lib/gdb.exp (with_target_charset): New proc. diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 53c7aba820..5411cb5b23 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -2861,7 +2861,7 @@ proc gdb_compile_pthreads {source dest type options} { } } if {!$built_binfile} { - unsupported "Couldn't compile $source: ${why_msg}" + unsupported "Couldn't compile [file tail $source]: ${why_msg}" return -1 } } @@ -3033,7 +3033,7 @@ proc gdb_compile_objc {source dest type options} { } } if {!$built_binfile} { - unsupported "Couldn't compile $source: ${why_msg}" + unsupported "Couldn't compile [file tail $source]: ${why_msg}" return -1 } } -- 2.34.1