mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 09:19:32 +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
|
||||
LogWarning = '&"Warning:\n"';
|
||||
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);
|
||||
if Line = '&"kill\n"'
|
||||
then AResult.State := dsStop
|
||||
|
Loading…
Reference in New Issue
Block a user