mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-04 17:59:33 +01:00
GDBMI debugger, more error handling
git-svn-id: trunk@47702 -
This commit is contained in:
parent
ae6aad9a75
commit
44ee0084a7
@ -5194,7 +5194,11 @@ begin
|
|||||||
SetDebuggerErrorState(synfFailedToLoadApplicationExecutable, FErrorMsg);
|
SetDebuggerErrorState(synfFailedToLoadApplicationExecutable, FErrorMsg);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
if not DoSetPascal then exit;
|
if not DoSetPascal then begin
|
||||||
|
SetDebuggerErrorState(synfFailedToInitializeTheDebuggerSetPascalFailed,
|
||||||
|
FLastExecResult.Values);
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
|
||||||
DebugLn(['TGDBMIDebugger.StartDebugging WorkingDir="', FTheDebugger.WorkingDir,'"']);
|
DebugLn(['TGDBMIDebugger.StartDebugging WorkingDir="', FTheDebugger.WorkingDir,'"']);
|
||||||
if FTheDebugger.WorkingDir <> ''
|
if FTheDebugger.WorkingDir <> ''
|
||||||
@ -5346,6 +5350,8 @@ begin
|
|||||||
then ProcessFrame;
|
then ProcessFrame;
|
||||||
finally
|
finally
|
||||||
ReleaseRefAndNil(FContinueCommand);
|
ReleaseRefAndNil(FContinueCommand);
|
||||||
|
if not (DebuggerState in [dsInit, dsRun, dsPause]) then
|
||||||
|
SetDebuggerErrorState(synfFailedToInitializeDebugger);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
FSuccess := True;
|
FSuccess := True;
|
||||||
|
|||||||
@ -79,6 +79,9 @@ resourcestring
|
|||||||
lisResponseContinue = 'Response: %sContinue ?';
|
lisResponseContinue = 'Response: %sContinue ?';
|
||||||
dlgGroupDebugger = 'Debugger';
|
dlgGroupDebugger = 'Debugger';
|
||||||
synfFailedToLoadApplicationExecutable = 'Failed to load application executable';
|
synfFailedToLoadApplicationExecutable = 'Failed to load application executable';
|
||||||
|
synfFailedToInitializeTheDebuggerSetPascalFailed = 'Failed to initialize the debugger (set '
|
||||||
|
+'pascal failed)';
|
||||||
|
synfFailedToInitializeDebugger = 'Failed to initialize debugger';
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
|||||||
@ -171,6 +171,14 @@ msgstr ""
|
|||||||
msgid "Unexpected result:%sThe debugger will terminate"
|
msgid "Unexpected result:%sThe debugger will terminate"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializedebugger
|
||||||
|
msgid "Failed to initialize debugger"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializethedebuggersetpascalfailed
|
||||||
|
msgid "Failed to initialize the debugger (set pascal failed)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
||||||
msgid "Failed to load application executable"
|
msgid "Failed to load application executable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@ -143,6 +143,14 @@ msgstr "Válasz: %sFolytatás?"
|
|||||||
msgid "Unexpected result:%sThe debugger will terminate"
|
msgid "Unexpected result:%sThe debugger will terminate"
|
||||||
msgstr "Váratlan eredmény:%sA hibakereső leállni"
|
msgstr "Váratlan eredmény:%sA hibakereső leállni"
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializedebugger
|
||||||
|
msgid "Failed to initialize debugger"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializethedebuggersetpascalfailed
|
||||||
|
msgid "Failed to initialize the debugger (set pascal failed)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
||||||
msgid "Failed to load application executable"
|
msgid "Failed to load application executable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@ -145,6 +145,14 @@ msgstr "Risposta: %sContinuare ?"
|
|||||||
msgid "Unexpected result:%sThe debugger will terminate"
|
msgid "Unexpected result:%sThe debugger will terminate"
|
||||||
msgstr "Risultato inatteso:%sIl debugger termina"
|
msgstr "Risultato inatteso:%sIl debugger termina"
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializedebugger
|
||||||
|
msgid "Failed to initialize debugger"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializethedebuggersetpascalfailed
|
||||||
|
msgid "Failed to initialize the debugger (set pascal failed)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
||||||
msgid "Failed to load application executable"
|
msgid "Failed to load application executable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@ -171,6 +171,14 @@ msgstr ""
|
|||||||
msgid "Unexpected result:%sThe debugger will terminate"
|
msgid "Unexpected result:%sThe debugger will terminate"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializedebugger
|
||||||
|
msgid "Failed to initialize debugger"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializethedebuggersetpascalfailed
|
||||||
|
msgid "Failed to initialize the debugger (set pascal failed)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
||||||
msgid "Failed to load application executable"
|
msgid "Failed to load application executable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@ -171,6 +171,14 @@ msgstr ""
|
|||||||
msgid "Unexpected result:%sThe debugger will terminate"
|
msgid "Unexpected result:%sThe debugger will terminate"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializedebugger
|
||||||
|
msgid "Failed to initialize debugger"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializethedebuggersetpascalfailed
|
||||||
|
msgid "Failed to initialize the debugger (set pascal failed)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
||||||
msgid "Failed to load application executable"
|
msgid "Failed to load application executable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@ -133,6 +133,14 @@ msgstr ""
|
|||||||
msgid "Unexpected result:%sThe debugger will terminate"
|
msgid "Unexpected result:%sThe debugger will terminate"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializedebugger
|
||||||
|
msgid "Failed to initialize debugger"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializethedebuggersetpascalfailed
|
||||||
|
msgid "Failed to initialize the debugger (set pascal failed)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
||||||
msgid "Failed to load application executable"
|
msgid "Failed to load application executable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@ -176,6 +176,14 @@ msgstr ""
|
|||||||
msgid "Unexpected result:%sThe debugger will terminate"
|
msgid "Unexpected result:%sThe debugger will terminate"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializedebugger
|
||||||
|
msgid "Failed to initialize debugger"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializethedebuggersetpascalfailed
|
||||||
|
msgid "Failed to initialize the debugger (set pascal failed)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
||||||
msgid "Failed to load application executable"
|
msgid "Failed to load application executable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@ -170,6 +170,14 @@ msgstr "Ответ: %sПродолжить?"
|
|||||||
msgid "Unexpected result:%sThe debugger will terminate"
|
msgid "Unexpected result:%sThe debugger will terminate"
|
||||||
msgstr "Неожиданный результат:%sОтладчик прервёт работу."
|
msgstr "Неожиданный результат:%sОтладчик прервёт работу."
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializedebugger
|
||||||
|
msgid "Failed to initialize debugger"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializethedebuggersetpascalfailed
|
||||||
|
msgid "Failed to initialize the debugger (set pascal failed)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
||||||
msgid "Failed to load application executable"
|
msgid "Failed to load application executable"
|
||||||
msgstr "Не удалось загрузить исполнимый файл приложения"
|
msgstr "Не удалось загрузить исполнимый файл приложения"
|
||||||
|
|||||||
@ -168,6 +168,14 @@ msgstr ""
|
|||||||
msgid "Unexpected result:%sThe debugger will terminate"
|
msgid "Unexpected result:%sThe debugger will terminate"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializedebugger
|
||||||
|
msgid "Failed to initialize debugger"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: gdbmistringconstants.synffailedtoinitializethedebuggersetpascalfailed
|
||||||
|
msgid "Failed to initialize the debugger (set pascal failed)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
#: gdbmistringconstants.synffailedtoloadapplicationexecutable
|
||||||
msgid "Failed to load application executable"
|
msgid "Failed to load application executable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user