DBG: simplify getting line info (no type "pointer" needed)

git-svn-id: trunk@40205 -
This commit is contained in:
martin 2013-02-08 03:20:24 +00:00
parent 98b1126b93
commit 4e4bffbae4

View File

@ -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));