From 7faa02568b126f46e312d83eb174cdece4927434 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Tue, 29 Nov 2016 06:31:47 +0100 Subject: [PATCH] #97, fix, it was impossible to dbg a runnable if curr proj out was a lib --- src/ce_gdb.pas | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ce_gdb.pas b/src/ce_gdb.pas index b99a9043..987d81d6 100644 --- a/src/ce_gdb.pas +++ b/src/ce_gdb.pas @@ -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