This is the mail archive of the gdb-patches@sources.redhat.com 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]

create_inferior


(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

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