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;
In reply to join() in perl threads does not return by Mj1234
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |