create_inferior
Brethour, Tanya (tonic)
tonic@sequent.com
Tue Jul 25 11:34:00 GMT 2000
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
mailing list