Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
To: Patrick Monnerat <patrick@monnerat.net>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Replace deprecated_target_wait_hook by an observer
Date: Mon, 23 Aug 2021 12:26:24 -0400	[thread overview]
Message-ID: <a6813d36-e495-a810-e545-8ff8a4774a08@polymtl.ca> (raw)
In-Reply-To: <20210822164256.144875-1-patrick@monnerat.net>



On 2021-08-22 12:42 p.m., Patrick Monnerat via Gdb-patches wrote:
> Commit b60cea7 (Make target_wait options use enum flags) broke
> deprecated_target_wait_hook usage: there's a commit comment telling
> this hook has not been converted.
> 
> Rather than trying to mend it, this patch replaces the hook by a
> target_wait observer:
> 
> waiting_for_target (bool entering, ptid_t ptid)
> 
> Upon target_wait entry, it is notified with entering=TRUE and ptid passed
> to target_wait. Upon exit, it is notified again with entering=FALSE and
> ptid = event ptid returned by target_wait.
> 
> This change benefits to Insight (out-of-tree): there's no real use of the
> late hook in gdb itself.

Hi,

If that works for Insight (I presume it does, since you are sending this
patch), then this is a welcome change.  Can you show to the
corresponding change in Insight?  I'm curious to see how Insight uses
this.

But otherwise, the change in gdb looks good to me.

Simon

  reply	other threads:[~2021-08-23 16:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-22 16:42 Patrick Monnerat via Gdb-patches
2021-08-23 16:26 ` Simon Marchi via Gdb-patches [this message]
2021-08-23 17:36   ` Patrick Monnerat via Gdb-patches
2021-08-23 17:48     ` Simon Marchi via Gdb-patches
2021-08-23 18:01       ` Patrick Monnerat via Gdb-patches
2021-08-24 16:14 ` Andrew Burgess
2021-08-25 13:30   ` Patrick Monnerat via Gdb-patches
2021-08-25 16:19     ` Andrew Burgess
2021-08-26  2:41       ` Simon Marchi via Gdb-patches
2021-08-26 10:53         ` Patrick Monnerat via Gdb-patches

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=a6813d36-e495-a810-e545-8ff8a4774a08@polymtl.ca \
    --to=gdb-patches@sourceware.org \
    --cc=patrick@monnerat.net \
    --cc=simon.marchi@polymtl.ca \
    /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