mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 05:19:22 +02:00
* Merged Getpart for target PID form Colin Western
git-svn-id: trunk@5409 -
This commit is contained in:
parent
b0e5db0b68
commit
9043e56a4d
@ -1543,12 +1543,9 @@ begin
|
||||
// try to find PID
|
||||
if ExecuteCommand('info program', [], ResultState, S, [cfIgnoreError, cfNoMICommand])
|
||||
then begin
|
||||
TargetPIDPart := GetPart(['child process ', 'child thread '], [' ', '.'], S, True);
|
||||
TargetPIDPart := GetPart(['child process ', 'child thread ', 'lwp '],
|
||||
[' ', '.', ')'], S, True);
|
||||
FTargetPID := StrToIntDef(TargetPIDPart, 0);
|
||||
if FTargetPID <= 0 then begin
|
||||
TargetPIDPart := GetPart(['LWP '], [' ', ')'], S, True);
|
||||
FTargetPID := StrToIntDef(TargetPIDPart, 0);
|
||||
end;
|
||||
WriteLN('[Debugger] Target PID: ', FTargetPID);
|
||||
end
|
||||
else begin
|
||||
@ -2264,6 +2261,9 @@ initialization
|
||||
end.
|
||||
{ =============================================================================
|
||||
$Log$
|
||||
Revision 1.46 2004/04/14 23:07:20 marc
|
||||
* Merged Getpart for target PID form Colin Western
|
||||
|
||||
Revision 1.45 2004/04/13 20:14:26 mattias
|
||||
fixed debugging under fedora core from Colin
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user