[PATCH] Fix PR remote/19840: gdb crashes on reverse-stepi

Pedro Alves palves@redhat.com
Wed Apr 13 13:42:00 GMT 2016


On 04/04/2016 05:33 PM, Yao Qi wrote:
> Pedro Alves <palves@redhat.com> writes:
> 
>> gdb/ChangeLog:
>> 2016-03-30  Pedro Alves  <palves@redhat.com>
>>
>> 	PR remote/19840
>> 	* remote.c (struct remote_state) <last_resume_exec_dir>: New
>> 	field.
>> 	(new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
>> 	(remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
>> 	(remote_resume): Store the last execution direction.
>> 	(remote_execution_direction): New function.
>> 	(init_remote_ops): Install it as to_execution_direction target_ops
>> 	method.
> 
> Patch is good to me.

Thanks, I've now pushed this to master and 7.11 branch.

-- 
Pedro Alves



More information about the Gdb-patches mailing list