Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: pedro@codesourcery.com (Pedro Alves)
Cc: gdb-patches@sourceware.org
Subject: Re: [rfc][rft (procfs, nto-procfs)] Fix signal bypass heuristic with software single-step
Date: Thu, 24 Mar 2011 16:39:00 -0000	[thread overview]
Message-ID: <201103241550.p2OFoNEt012695@d06av02.portsmouth.uk.ibm.com> (raw)
In-Reply-To: <201103221618.21253.pedro@codesourcery.com> from "Pedro Alves" at Mar 22, 2011 04:18:21 PM

Pedro Alves wrote:

> As discussed before, I like the approach, but I have a couple of remarks
> to the implementation:

Thanks for the review!

>  - There are more calls to target_resume in infrun.c.  Don't we need
> to consider signals around those?

Hmm, that's true.

>  - In non-stop, if you have this sequence:
> 
>      - step thread 1
>      - continue thread 2 (imediately afterwards)
>      - thread 1 gets signal FOO (which is normally pass-able).
> 
>    when handling the latter event, since the "signal_pass" set is
>    global, and has been filled by the previous continue, the target
>    will think it doesn't need to report the signal back to core gdb.
> 
> You've said before about this when I raised the issue before:
> 
>  "If the implementation is conservative in the right direction,
>  the worst thing that could happen is that a signal is reported that
>  might have gotten short-circuited .."
> 
> Might be we just need to check if _any_ thread is stepping, when
> deciding whether to tell the target to report back all signals?

Right, that seems correct to me.

Tom Tromey wrote:

> I would like it if there were more documentation about what this method
> means and how it is used.  Actually, I suppose I would prefer it on the
> field in struct target_ops, to be read by people porting gdb.

Good point, agreed.


I'll work on another update of the patch ...

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


  reply	other threads:[~2011-03-24 15:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-19  1:54 Ulrich Weigand
2011-03-22 17:25 ` Pedro Alves
2011-03-24 16:39   ` Ulrich Weigand [this message]
2011-03-31 19:42   ` [rfc v2][rft " Ulrich Weigand
2011-04-04  9:47     ` Pedro Alves
2011-04-05 19:22       ` Ulrich Weigand
2011-04-05 19:33         ` Aleksandar Ristovski
2011-04-05 22:56           ` Ulrich Weigand
2011-04-06  1:37             ` Aleksandar Ristovski
2011-04-06 17:00               ` Ulrich Weigand
2011-04-26 17:34               ` Ulrich Weigand
2011-04-06  6:07         ` Joel Brobecker
2011-04-06 17:01           ` Ulrich Weigand
2011-04-27  1:12         ` Joel Brobecker
2011-04-27 13:31           ` Ulrich Weigand
2011-03-22 17:37 ` [rfc][rft " Tom Tromey

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=201103241550.p2OFoNEt012695@d06av02.portsmouth.uk.ibm.com \
    --to=uweigand@de.ibm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@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