This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
create_inferior
- To: "'gdb at sourceware dot cygnus dot com'" <gdb at sourceware dot cygnus dot com>
- Subject: create_inferior
- From: "Brethour, Tanya (tonic)" <tonic at sequent dot com>
- Date: Tue, 25 Jul 2000 11:34:37 -0700
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