This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/4] catch syscall -- try 4 -- Architecture-dependent part
- From: Sérgio Durigan Júnior <sergiodj at linux dot vnet dot ibm dot com>
- To: uweigand at pctc1 dot boeblingen dot de dot ibm dot com
- Cc: gdb-patches at sourceware dot org, teawater <teawater at gmail dot com>
- Date: Mon, 26 Jan 2009 16:46:49 -0200
- Subject: Re: [PATCH 2/4] catch syscall -- try 4 -- Architecture-dependent part
- References: <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