Drop prefix from unsupported source path.
authorMarcus Shawcroft <marcus.shawcroft@arm.com>
Thu, 17 Apr 2014 09:52:43 +0000 (10:52 +0100)
committerMarcus Shawcroft <marcus.shawcroft@arm.com>
Thu, 17 Apr 2014 09:52:43 +0000 (10:52 +0100)
gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp

index 7cc86f1..13752ef 100644 (file)
@@ -1,3 +1,8 @@
+2014-04-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
+
+       * lib/gdb.exp (gdb_compile_pthreads, gdb_compile_objc):
+       Drop prefix from unsupported source file path.
+
 2014-04-17  Yao Qi  <yao@codesourcery.com>
 
        * lib/gdb.exp (with_target_charset): New proc.
index 53c7aba..5411cb5 100644 (file)
@@ -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
     }
 }