create_inferior
Brethour, Tanya (tonic)
tonic@sequent.com
Wed Jul 26 10:34:00 GMT 2000
(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
More information about the Gdb-patches
mailing list