mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 08:19:41 +02:00
Debugger: force gdb to use lang=pascal. (set after attach / needed in some environment, such as cgi in webserver)
git-svn-id: trunk@43038 -
This commit is contained in:
parent
6f63e5d1ef
commit
6edf206205
@ -5109,7 +5109,7 @@ begin
|
||||
|
||||
// Tnit (StartDebugging)
|
||||
TargetInfo^.TargetFlags := [tfHasSymbols]; // Set until proven otherwise
|
||||
ExecuteCommand('-gdb-set language pascal', [cfCheckError]);
|
||||
ExecuteCommand('-gdb-set language pascal', [cfCheckError]); // TODO: Maybe remove, must be done after attach
|
||||
|
||||
//{$IF defined(UNIX) or defined(DBG_ENABLE_TERMINAL)}
|
||||
//InitConsole;
|
||||
@ -5187,11 +5187,14 @@ begin
|
||||
|
||||
TargetInfo^.TargetPID := NewPID;
|
||||
|
||||
ExecuteCommand('-gdb-set language pascal', [cfCheckError]);
|
||||
|
||||
if (FTheDebugger.FileName <> '') and (pos('READING SYMBOLS FROM', UpperCase(CmdResp)) < 1) then begin
|
||||
ExecuteCommand('ptype TObject', [], R);
|
||||
if pos('NO SYMBOL TABLE IS LOADED', UpperCase(FFullCmdReply)) > 0 then begin
|
||||
ExecuteCommand('-file-exec-and-symbols %s',
|
||||
[FTheDebugger.ConvertToGDBPath(UTF8ToSys(FTheDebugger.FileName), cgptExeName)], R);
|
||||
ExecuteCommand('-gdb-set language pascal', [cfCheckError]);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user