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 7cc86f1fa461ac977811d16988cad9032619f9b2..13752efb3e0d0b12249142c5b9cada7cf8a53de8 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 53c7aba820df7664656c3d0bd30daf8cc535eb6e..5411cb5b23fe07ba00b14ebdaaec51b05eba305e 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
     }
 }