mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 20:39:25 +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
|
if (Result.SrcLine = -1) or (Result.SrcFile = '') then begin
|
||||||
Str(Result.Address, S);
|
Str(Result.Address, S);
|
||||||
if ExecuteCommand('info line * POINTER(%s)', [S], R)
|
if ExecuteCommand('info line *%s', [S], R)
|
||||||
then begin
|
then begin
|
||||||
Result.SrcLine := StrToIntDef(GetPart('Line ', ' of', R.Values), -1);
|
Result.SrcLine := StrToIntDef(GetPart('Line ', ' of', R.Values), -1);
|
||||||
Result.SrcFile := ConvertGdbPathAndFile(GetPart('\"', '\"', R.Values));
|
Result.SrcFile := ConvertGdbPathAndFile(GetPart('\"', '\"', R.Values));
|
||||||
|
Loading…
Reference in New Issue
Block a user