mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 20:52:09 +02:00
DBG: simplify getting line info (no type "pointer" needed)
git-svn-id: trunk@40205 -
This commit is contained in:
parent
98b1126b93
commit
4e4bffbae4
@ -4908,7 +4908,7 @@ function TGDBMIDebuggerCommandExecute.ProcessStopped(const AParams: String;
|
||||
|
||||
if (Result.SrcLine = -1) or (Result.SrcFile = '') then begin
|
||||
Str(Result.Address, S);
|
||||
if ExecuteCommand('info line * POINTER(%s)', [S], R)
|
||||
if ExecuteCommand('info line *%s', [S], R)
|
||||
then begin
|
||||
Result.SrcLine := StrToIntDef(GetPart('Line ', ' of', R.Values), -1);
|
||||
Result.SrcFile := ConvertGdbPathAndFile(GetPart('\"', '\"', R.Values));
|
||||
|
Loading…
Reference in New Issue
Block a user