DBG: pid with gdb7.1 on Mac 32 bit

git-svn-id: trunk@28617 -
This commit is contained in:
martin 2010-12-04 14:14:05 +00:00
parent 4e1a941852
commit 6cee875ace

View File

@ -3049,6 +3049,15 @@ begin
List.Free;
end;
// apple / MacPort 7.1 / 32 bit dwarf
if (TargetInfo^.TargetPID = 0)
and ExecuteCommand('info threads', [], R, [cfCheckState])
and (R.State <> dsError)
then begin
TargetPIDPart := GetPart(['of process '], [' '], R.Values, True);
TargetInfo^.TargetPID := StrToIntDef(TargetPIDPart, 0);
end;
if TargetInfo^.TargetPID = 0
then begin
Result := False;