[committed][gdb/testsuite] Use string_to_regexp on core filename in gdb_core_cmd

Tom de Vries tdevries@suse.de
Thu Mar 12 10:04:46 GMT 2020


[ was: Re: [committed][gdb/testsuite] Fix core file load FAIL in
tls-core.exp ]
On 12-03-2020 10:20, Andreas Schwab wrote:
> On Mär 12 2020, Tom de Vries wrote:
> 
>> diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
>> index 9e903ba347..bb70ef13f2 100644
>> --- a/gdb/testsuite/lib/gdb.exp
>> +++ b/gdb/testsuite/lib/gdb.exp
>> @@ -4648,7 +4648,7 @@ proc gdb_core_cmd { core test } {
>>  	    fail "$test (bad file format)"
>>  	    return -1
>>  	}
>> -	-re ": No such file or directory.*\r\n$gdb_prompt $" {
>> +	-re "$core: No such file or directory.*\r\n$gdb_prompt $" {
> 
> I think you need to regexp-quote the string.
> 

Ack, fixed by this patch.

Thanks,
- Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gdb-testsuite-Use-string_to_regexp-on-core-filename-in-gdb_core_cmd.patch
Type: text/x-patch
Size: 1196 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20200312/a865f93d/attachment.bin>


More information about the Gdb-patches mailing list