GDBMI debugger, check result of SetFileName. Issue #0027431

git-svn-id: trunk@47671 -
This commit is contained in:
martin 2015-02-10 04:06:31 +00:00
parent 665a2f6b95
commit 1c640605a8
2 changed files with 5 additions and 1 deletions

View File

@ -5190,7 +5190,10 @@ begin
Exit;
end;
if not DoChangeFilename then exit;
if not DoChangeFilename then begin
SetDebuggerErrorState(synfFailedToLoadApplicationExecutable, FErrorMsg);
exit;
end;
if not DoSetPascal then exit;
DebugLn(['TGDBMIDebugger.StartDebugging WorkingDir="', FTheDebugger.WorkingDir,'"']);

View File

@ -78,6 +78,7 @@ resourcestring
+'debugger will terminate';
lisResponseContinue = 'Response: %sContinue ?';
dlgGroupDebugger = 'Debugger';
synfFailedToLoadApplicationExecutable = 'Failed to load application executable';
implementation