This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 7/8] Use reinsert_breakpoint for vCont;s


Pedro Alves <palves@redhat.com> writes:

>> +  /* Remove reinsert breakpoints for resume_step.  */
>> +  if (can_software_single_step ()
>> +      && current_thread->last_resume_kind == resume_step
>
> What if a vCont;t came in after the step had started and
> before it finished?  Won't we have lost the resume_step 
> linux_set_resume_request then?

Do you mean a case like this?  GDB sends vCont;s, and then GDBserver
started step-over, in the middle of step-over, GDB sends vCont;t, so
thread->last_resume_kind is set from resume_step to resume_stop, and the
check here fails, so reinsert breakpoints are not deleted.

-- 
Yao (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]