[PATCH 6/6] Don't throw exception in dis_asm_memory_error

Luis Machado lgustavo@codesourcery.com
Wed Jan 18 14:58:00 GMT 2017


On 01/18/2017 08:54 AM, Yao Qi wrote:
> On 17-01-17 08:42:24, Luis Machado wrote:
>>> +    gdb_test_internal "disassemble 0x0,+4" \
>>> +	"Cannot access memory at address 0x0"
>>
>> I think you missed the comment you had proposed?
>>
>
> Sorry.
>
>> # GDB can't access any memory because there is no live inferior.
>>
>> I take it we have no loaded executable as well? Otherwise we could
>> eventually read data from the executable file, which wouldn't yield
>> an error.
>
> How about this?
>
>     # GDB can't access memory because there is no loaded executable
>     # nor live inferior.
>

Looks good to me.



More information about the Gdb-patches mailing list