<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">>Given that KDevelop clear expects only an executable file in the command
 entry field, you'd have to enter `sh` as the command, and prepend 
`/path/to/wrapper /path/to/executable` in front of your argument list. <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">So, If I follow that, how can I specify the program's argument list? Because the wrapper takes one argument and that is the program's binary. <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Meanwhile I will try to see if I can attach gdb from a console with a PID.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="tahoma,sans-serif">Regards,<br>Mahmood</font><br><br><br></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 29, 2021 at 10:59 AM RenĂ© J.V. Bertin <<a href="mailto:rjvbertin@gmail.com">rjvbertin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thursday July 29 2021 10:11:13 Mahmood Naderan wrote:<br>
>/home/mnaderan/accel-sim-framework/> '/usr/bin/sh /home/mnaderan/accel-sim-framework/run.sh /home/mnaderan/accel-sim-framework/gpusimulator/bin/release/accel-sim.out'<br>
>*** Failure: /usr/bin/sh /home/mnaderan/accel-sim-framework/run.sh<br>
>/home/mnaderan/accel-sim-framework/gpu-simulator/bin/release/accel-sim.out<br>
>has failed to start ***<br>
<br>
That figures: look at the single quotes. I think you specified '/usr/bin/sh /home/mnaderan/accel-sim-framework/run.sh /home/mnaderan/accel-sim-framework/gpusimulator/bin/release/accel-sim.out' as the executable, and a file with that name doesn't exist (or doesn't have the executable bit set).<br>
<br>
I think you tried to follow my suggestion to use `/bin/sh /path/to/wrapper /path/to/executable`. Given that KDevelop clear expects only an executable file in the command entry field, you'd have to enter `sh` as the command, and prepend `/path/to/wrapper /path/to/executable` in front of your argument list.<br>
<br>
FWIW, if this is for debugging, you have another option. Start your application from a shell, and then attach the debugger to the running application. This can even have an advantage if you want to debug some feature that is not part of the startup procedure of your application: all the steps that you are NOT interested in are taken at maximum speed, without the overhead from a debugger (which can be considerable).<br>
<br>
R.<br>
</blockquote></div>