Mj1234 has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to debug an exe using GDB debugger and using perl thread for it. I have attached a thread to the gdbserver and the exe is attached to the gdbserver as shown.
$self_ph->{GDBSERVERTHREAD} = threads::async{ $gdbserver_path :6000 $Exe_path 1> NUL 2> NUL` ; threads->exit(); }; $self_ph->{IN_QUEUE} = new Thread::Queue;
Everything works fine but in my kill module the exe does not terminate and the join function is executed the control does not return. Is there something that I am missing?
`taskkill /F /IM My_Exe.exe`; $self_ph->{GDBSERVERTHREAD}->join(); $self_ph->{GDBSERVERTHREAD} = undef;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: join() in perl threads does not return
by Corion (Patriarch) on Oct 01, 2016 at 08:43 UTC | |
|
Re: join() in perl threads does not return
by BrowserUk (Patriarch) on Oct 01, 2016 at 10:39 UTC | |
by Mj1234 (Sexton) on Oct 03, 2016 at 06:08 UTC | |
by BrowserUk (Patriarch) on Oct 03, 2016 at 06:26 UTC | |
by Mj1234 (Sexton) on Oct 03, 2016 at 08:49 UTC | |
by BrowserUk (Patriarch) on Oct 03, 2016 at 09:04 UTC |