mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 13:29:47 +02:00
GDB: added detection for missing symbols
git-svn-id: trunk@36011 -
This commit is contained in:
parent
c7c08909bf
commit
9050fc84e6
@ -9991,6 +9991,12 @@ var
|
|||||||
const
|
const
|
||||||
LogWarning = '&"Warning:\n"';
|
LogWarning = '&"Warning:\n"';
|
||||||
begin
|
begin
|
||||||
|
// check for symbol info
|
||||||
|
if Pos('No symbol table is loaded. Use the \"file\" command.', Line) > 0
|
||||||
|
then begin
|
||||||
|
TargetInfo^.TargetFlags := TargetInfo^.TargetFlags - [tfHasSymbols];
|
||||||
|
DoDbgEvent(ecDebugger, etDefault, Format('File ''%s'' has no debug symbols', [FTheDebugger.FileName]));
|
||||||
|
end;
|
||||||
DebugLn('[Debugger] Log output: ', Line);
|
DebugLn('[Debugger] Log output: ', Line);
|
||||||
if Line = '&"kill\n"'
|
if Line = '&"kill\n"'
|
||||||
then AResult.State := dsStop
|
then AResult.State := dsStop
|
||||||
|
Loading…
Reference in New Issue
Block a user