[PATCH, gdb/testsuite] Fix compare-sections.exp FAIL

Thomas Preudhomme thomas.preudhomme@foss.arm.com
Tue Sep 26 08:59:00 GMT 2017


Committed and pushed. Committed version in attachment.

Best regards,

Thomas

On 14/09/17 14:26, Pedro Alves wrote:
> Hi Thomas,
> 
> On 09/12/2017 04:24 PM, Thomas Preudhomme wrote:
>> Hi Pedro,
>>
>> Thanks for the review. Please find an updated patch attached. Updated
>> ChangeLog entry and description are as follow:
>>
>> compare-sections.exp has two cases that are not handled appropriately:
>> 1) value read from read-only section is negative
>> 2) error while patching that section
>>
>> This patch adapts the regular expression to allow a minus sign to deal
>> with 1)
> 
> The above is stale.  It should now talk about /d vs /u.
> Could you please update?
> 
>> Is this ok for master?
> 
> OK with commit log fixed, and ...
> 
> On 09/12/2017 04:24 PM, Thomas Preudhomme wrote:
>> @@ -136,6 +136,9 @@ with_test_prefix "read-only" {
>>       set written -1
>>       set test "corrupt read-only section"
>>       gdb_test_multiple "print /d *(unsigned char *) $ro_address = $patch" "$test" {
> 
> ... this should be switched to "/u" too.
> 
>> +	-re " = .*Cannot access memory at address $ro_address.*$gdb_prompt $" {
>> +	    pass "$test (cannot write)"
> 
> Thanks,
> Pedro Alves
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-FAILs-in-compare-sections.exp.patch
Type: text/x-patch
Size: 2742 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20170926/1694bc0e/attachment.bin>


More information about the Gdb-patches mailing list