Skip to content
  • Yao Qi's avatar
    Resume the inferior with signal rather than stepping over · 484b3c32
    Yao Qi authored
    When GDBserver steps over a breakpoint using software single step, it
    enqueues the signal, single step and deliver the signal in the next
    resume if step over is not needed.  In this way, the program won't
    receive the signal if the conditional breakpoint is set a branch to
    self instruction, because the step over is always needed.
    
    This patch removes the restriction that don't deliver the signal to
    the inferior if we are trying to reinsert a breakpoint for software
    single step and change the decision on resume vs. step-over when the
    LWP has pending signals to deliver.
    
    gdb/gdbserver:
    
    2016-04-25  Yao Qi  <yao.qi@linaro.org>
    
    	* linux-low.c (lwp_signal_can_be_delivered): Adjust.
    	(need_step_over_p): Return zero if the LWP has pending signals
    	can be delivered on software single step target.
    484b3c32