Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: gdb-patches@sourceware.org
Subject: Re: [commit] Follow forks on HP-UX 10.20
Date: Mon, 25 Jul 2005 22:19:00 -0000	[thread overview]
Message-ID: <20050725221944.GA19564@nevyn.them.org> (raw)
In-Reply-To: <200507252212.j6PMCS3j015796@elgar.sibelius.xs4all.nl>

On Tue, Jul 26, 2005 at 12:12:28AM +0200, Mark Kettenis wrote:
> Finally, the goal of this excercise.  The code is also going to be
> used on OpenBSD when I get the necessary kernel stuff committed.  It
> doesn't do follow-vfork yet.  HP-UX 10.20 doesn't really allow you to
> do anything with a vforked child until it execs.  So follow-vfork
> isn't useful until follow-exec is properly implemented.
> 
> Committed,

I'm not really sure this is in the right place.  Good, you're going to
implement the HP/UX ptrace interface on OpenBSD also.  But even then
it'll be HP/UX and OpenBSD specific.  Why can't they inherit from
inf-ptrace.c instead of adding ifdefs to this file?  Isn't that the
point of target inheritance - to avoid having code in the "base
classes" which is only useful on a few targets?

> P.S. Daniel, I'm going to remove the messages from inf-ttrace.c such
> that things behaves the same way on HP-UX 11.xx as they do on HP-UX
> 10.20.

Sounds good.

> @@ -471,6 +588,9 @@ inf_ptrace_target (void)
>    t->to_files_info = inf_ptrace_files_info;
>    t->to_kill = inf_ptrace_kill;
>    t->to_create_inferior = inf_ptrace_create_inferior;
> +#ifdef PT_GET_PROCESS_STATE
> +  t->to_follow_fork = inf_ptrace_follow_fork;
> +#endif
>    t->to_mourn_inferior = inf_ptrace_mourn_inferior;
>    t->to_thread_alive = inf_ptrace_thread_alive;
>    t->to_pid_to_str = normal_pid_to_str;

This in particular makes me think it's in the wrong place.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


  reply	other threads:[~2005-07-25 22:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-25 22:12 Mark Kettenis
2005-07-25 22:19 ` Daniel Jacobowitz [this message]
2005-07-26 21:02   ` Mark Kettenis

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=20050725221944.GA19564@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    /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