#97, fix, it was impossible to dbg a runnable if curr proj out was a lib

This commit is contained in:
Basile Burg 2016-11-29 06:31:47 +01:00
parent c3e55b86ab
commit 7faa02568b
No known key found for this signature in database
GPG Key ID: 1868039F415CB8CF
1 changed files with 4 additions and 1 deletions

View File

@ -1416,8 +1416,11 @@ begin
dlgOkInfo('No runnable to debug', 'GDB commander');
exit;
end;
if fProj.binaryKind <> executable then
if not fDbgRunnable and (fProj.binaryKind <> executable) then
begin
dlgOkInfo('The project cannot be debugged because it does not output an executable', 'GDB commander');
exit;
end;
if not fDbgRunnable then
fExe := fProj.outputFilename
else