Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Sérgio Durigan Júnior" <sergiodj@linux.vnet.ibm.com>
To: uweigand@pctc1.boeblingen.de.ibm.com
Cc: gdb-patches@sourceware.org, teawater <teawater@gmail.com>
Subject: Re: [PATCH 2/4] catch syscall -- try 4 -- Architecture-dependent 	part
Date: Mon, 26 Jan 2009 18:52:00 -0000	[thread overview]
Message-ID: <1232995610.26873.41.camel@miki> (raw)
In-Reply-To: <200901261836.n0QIaKv7027857@pctc1.boeblingen.de.ibm.com>

Hi Ulrich,

On Mon, 2009-01-26 at 19:36 +0100, uweigand@pctc1.boeblingen.de.ibm.com
wrote:
> Segio Durigan Junior wrote:
> 
> > +static void
> > +linux_enable_tracesysgood (ptid_t ptid)
> > +{
> > +  int pid = ptid_get_lwp (ptid);
> > +
> > +  if (pid == 0)
> > +    pid = ptid_get_pid (ptid);
> > +
> > +  if (linux_supports_tracesysgood (pid) == 0)
> > +    return;
> > +
> > +  current_ptrace_options |= PTRACE_O_TRACESYSGOOD;
> > +  linux_passed_by_entrypoint_flag = 1;
> > +
> > +  ptrace (PTRACE_SETOPTIONS, pid, 0, current_ptrace_options);
> > +}
> 
> I don't see any place where this function is ever called ...
> Could you explain how this is supposed to work?  Or am I
> overlooking something here?

If you take a closer look, you'll see that it's called in:

- linux_child_post_attach
- linux_child_post_startup_inferior

:-)

Thanks!

-- 
Sérgio Durigan Júnior
Linux on Power Toolchain - Software Engineer
Linux Technology Center - LTC
IBM Brazil


       reply	other threads:[~2009-01-26 18:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200901261836.n0QIaKv7027857@pctc1.boeblingen.de.ibm.com>
2009-01-26 18:52 ` Sérgio Durigan Júnior [this message]
2009-01-26 18:59   ` Sérgio Durigan Júnior
2009-01-26 19:35     ` Ulrich Weigand
2009-01-26 19:45       ` Sérgio Durigan Júnior
2009-01-26  0:31 Sérgio Durigan Júnior
2009-02-01 19:40 ` Daniel Jacobowitz

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=1232995610.26873.41.camel@miki \
    --to=sergiodj@linux.vnet.ibm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=teawater@gmail.com \
    --cc=uweigand@pctc1.boeblingen.de.ibm.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