This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
create_inferior
- To: "'gdb-patches at sourceware dot cygnus dot com'" <gdb-patches at sourceware dot cygnus dot com>
- Subject: create_inferior
- From: "Brethour, Tanya (tonic)" <tonic at sequent dot com>
- Date: Wed, 26 Jul 2000 10:34:31 -0700
(FYI - Resubmitting to this mailing list)
> Quick question..
>
> in a create_inferior function.. should the add_thread(inferior_pid) be
> before or after the proceed function:
>
>
> This what I have:
>
> static void
> ptx_thread_create_inferior (exec_file, allargs, env)
> char *exec_file;
> char *allargs;
> char **env;
> {
>
>
> fork_inferior (exec_file, allargs, env, lwptrace_me,
> lwptrace_him, NULL, NULL);
>
>
> proceed ((CORE_ADDR) -1, TARGET_SIGNAL_0, 0);
> push_target (&ptx_thread_ops);
> add_thread (inferior_pid);
> }
>
> Thanks,
> Tanya