Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Yao Qi <yao@codesourcery.com>
To: Pedro Alves <palves@redhat.com>
Cc: <gdb-patches@sourceware.org>
Subject: Re: [PATCH] stepi/nexti: skip signal handler if "handle nostop" signal arrives
Date: Wed, 15 Oct 2014 11:12:00 -0000	[thread overview]
Message-ID: <87oatdmvzd.fsf@codesourcery.com> (raw)
In-Reply-To: <1413308910-30423-1-git-send-email-palves@redhat.com> (Pedro	Alves's message of "Tue, 14 Oct 2014 18:48:30 +0100")

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?

> 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?

>  	  && 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)

-- 
Yao (齐尧)


  parent reply	other threads:[~2014-10-15 11:12 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 [this message]
2014-10-15 13:44   ` Pedro Alves

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=87oatdmvzd.fsf@codesourcery.com \
    --to=yao@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.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