This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/4] catch syscall -- try 4 -- Architecture-dependent part


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]