Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Tristan Gingold <gingold@adacore.com>
Subject: Re: Use of target_activity_function/target_activity_fd
Date: Thu, 11 Dec 2008 17:03:00 -0000	[thread overview]
Message-ID: <200812111702.32346.pedro@codesourcery.com> (raw)
In-Reply-To: <9A0993B6-A696-4A2E-99B8-0112F0AF6089@adacore.com>

On Thursday 11 December 2008 13:31:36, Tristan Gingold wrote:
> Hi,
> 
> the hook target_activity_function is unused according to grep.  Is it  
> expected or should this unused code
> be removed ?

I've wondered this myself before.  It was added in 94,

Thu May 19 09:56:20 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)

        * target.c, target.h: New variables target_activity_function and
        target_activity_fd.
        * inflow.c, inferior.h: New functions set_sigio_trap and
        clear_sigio_trap.
        * inftarg.c (child_wait), procfs.c (wait_fd): Call them.

This was added between GDB 4.9 and 5.0.  I don't think code setting
a target_activity_function has ever made it the the public GDB, at least
according to the ChangeLog.  5.0 doesn't have any either, so maybe this
was for some Cygnus customer project; maybe someone that worked
there at the time remembers it.  Insight also doesn't make use of it.

In any case, given that at least two people have lost time trying
to understand what good was this for, I say we nuke it,  and get rid
of *_sigio_trap in the process as well, which has calls that have been
propagated to several targets by now.

-- 
Pedro Alves


  reply	other threads:[~2008-12-11 17:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-11 13:32 Tristan Gingold
2008-12-11 17:03 ` Pedro Alves [this message]
2008-12-15 13:43   ` [RFA]: Remove target_activity_function/target_activity_fd Tristan Gingold
2008-12-15 18:07     ` Pedro Alves
2008-12-16 11:30       ` Tristan Gingold

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=200812111702.32346.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=gingold@adacore.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