Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Yao Qi <yao@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] stepi/nexti: skip signal handler if "handle nostop" signal arrives
Date: Wed, 15 Oct 2014 13:44:00 -0000	[thread overview]
Message-ID: <543E7A51.8020609@redhat.com> (raw)
In-Reply-To: <87oatdmvzd.fsf@codesourcery.com>

On 10/15/2014 12:08 PM, Yao Qi wrote:
> Pedro Alves <palves@redhat.com> writes:
> 
>> I think that having to explain that "stepi" steps into handlers, (and
>> that "nexti" wouldn't according to my reasoning above), while "step"
>> does, is a sign of an awkward interface.
>>
> 
> I suspect you meant "step" does NOT, right?

Gah.  Indeed.

> 
>> diff --git a/gdb/infrun.c b/gdb/infrun.c
>> index d61cc12..3682765 100644
>> --- a/gdb/infrun.c
>> +++ b/gdb/infrun.c
>> @@ -4455,7 +4455,8 @@ handle_signal_stop (struct execution_control_state *ecs)
>>  
>>        if (ecs->event_thread->control.step_range_end != 0
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Is it still needed?
> 

Hmm, yeah, looks like it never was.

>>  	  && ecs->event_thread->suspend.stop_signal != GDB_SIGNAL_0
>> -	  && pc_in_thread_step_range (stop_pc, ecs->event_thread)
>> +	  && (pc_in_thread_step_range (stop_pc, ecs->event_thread)
>> +	      || ecs->event_thread->control.step_range_end == 1)
>>  	  && frame_id_eq (get_stack_frame_id (frame),
>>  			  ecs->event_thread->control.step_stack_frame_id)
>>  	  && ecs->event_thread->control.step_resume_breakpoint == NULL)

Thanks,
Pedro Alves


      reply	other threads:[~2014-10-15 13:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-14 17:48 Pedro Alves
2014-10-14 18:27 ` Eli Zaretskii
2014-10-14 18:49   ` Pedro Alves
2014-10-14 18:56     ` Pedro Alves
2014-10-14 19:22     ` Eli Zaretskii
2014-10-15 13:40       ` Pedro Alves
2014-10-15 14:31         ` Eli Zaretskii
2014-10-25 14:00           ` Pedro Alves
2014-10-27 17:39             ` Eli Zaretskii
2014-10-27 19:44               ` Pedro Alves
2014-10-27 19:58                 ` Eli Zaretskii
2014-10-27 20:34                   ` Pedro Alves
2014-10-15 11:12 ` Yao Qi
2014-10-15 13:44   ` Pedro Alves [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=543E7A51.8020609@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=yao@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox