This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Drop prefix from unsupported source path.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Marcus Shawcroft <marcus dot shawcroft at arm dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 16 Apr 2014 08:34:28 -0700
- Subject: Re: [PATCH] Drop prefix from unsupported source path.
- Authentication-results: sourceware.org; auth=none
- References: <533972A1 dot 6030604 at arm dot com>
> Various gdb tests report the absolute path to a source file in an
> UNSUPPORTED outcome. This creates noise when comparing result
> output with previous test runs. This patch drops the directory
> prefix from the reported path in a couple of the offending
> unsupported calls.
[...]
> 2014-03-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
>
> * lib/gdb.exp (gdb_compile_pthreads, gdb_compile_objc):
> Drop prefix from unsupported source file path.
Sorry for the delay. This is OK.
> diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
> index 73e935a..dd59738 100644
> --- a/gdb/testsuite/lib/gdb.exp
> +++ b/gdb/testsuite/lib/gdb.exp
> @@ -2828,7 +2828,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
> }
> }
> @@ -3000,7 +3000,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
> }
> }
Thanks,
--
Joel