public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: Andrew Burgess <andrew.burgess@embecosm.com>, insight@sourceware.org
Subject: Re: [PATCH] gdbtk: Remove use deprecated_interactive_hook
Date: Sat, 22 Jun 2019 17:28:00 -0000	[thread overview]
Message-ID: <2f15fa3a-9ba4-8a00-7646-d6b28894db7a@redhat.com> (raw)
In-Reply-To: <20190618103217.18629-1-andrew.burgess@embecosm.com>

On 6/18/19 3:32 AM, Andrew Burgess wrote:
> The deprecated_interactive_hook is currently setup to point to an
> empty function.  Removing this will allow a small clean up in GDB.
> The empty function used by deprecated_interactive_hook currently looks
> like this:
> 
>     /* Come here during long calculations to check for GUI events.  Usually invoked
>        via the QUIT macro.  */
> 
>     void
>     gdbtk_interactive (void)
>     {
>       /* Tk_DoOneEvent (TK_DONT_WAIT|TK_IDLE_EVENTS); */
>     }
> 
> As far as I can tell this function has been empty for years.  If in
> the future we do ever want or need to implement something like
> gdbtk_interactive, then we would be better off adding a new observable
> to GDB, but I don't see a reason to add one at this point just so that
> gdbtk can call an empty function.
> 
> ChangeLog:
> 
> 	* gdbtk/generic/gdbtk-hooks.c (gdbtk_add_hooks): Don't setup
> 	deprecated_interactive_hook.
> 	* gdbtk/generic/gdbtk.c (gdbtk_interactive): Delete.
> 	* gdbtk/generic/gdbtk.h (gdbtk_interactive): Delete declaration.

Wowser, how time flies when you're working on a release!

I would approve this, but it appears that Patrick has already adjusted the code
based on the related patch getting into gdb:

commit d8772263cdb55564e93528cf16248d3479d23346 (HEAD -> master, origin/master, origin/HEAD)
Author: Patrick Monnerat <patrick@monnerat.net>
Date:   Thu Jun 20 14:58:09 2019 +0200

    Upgrade submodule, sync code.
    
    deprecated_interactive hook has disappeared: remove its (noop) use.
    
    * gdbtk/generic/gdbtk-hooks.c (gdbtk_add_hooks): remove setting of
      deprecated_interactive_hook.
    * gdbtk/generic/gdbtk.[ch] (gdbtk_interactive): remove.

I appreciate that you took the time to take a look, and, of course, thanks for
the patch.

Keith

      reply	other threads:[~2019-06-22 17:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-18 10:32 Andrew Burgess
2019-06-22 17:28 ` Keith Seitz [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=2f15fa3a-9ba4-8a00-7646-d6b28894db7a@redhat.com \
    --to=keiths@redhat.com \
    --cc=andrew.burgess@embecosm.com \
    --cc=insight@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).