View Issue Details

IDProjectCategoryView StatusLast Update
0025273PatchesDebuggerpublic2014-10-21 17:08
ReporterJoost van der Sluis Assigned ToMartin Friebe  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformAppleOSDarwin 
Product Version1.3 (SVN) 
Target Version1.2.0Fixed in Version1.2.0 
Summary0025273: Patch to get PID after an attach to program
DescriptionOn my system, the line with the pid is finished with a dot before the newline. So to get the pid, the dot has to be omitted. See patch.

In practice this doesn't matter since the fall-back system to get the pid works. But it is better to get it right in the first place.
TagsNo tags attached.
Fixed in Revision43366
LazTarget1.2
Widgetset
Attached Files

Activities

Joost van der Sluis

2013-11-03 14:05

manager  

GetPidPatch.diff (466 bytes)   
Index: debugger/gdbmidebugger.pp
===================================================================
--- debugger/gdbmidebugger.pp	(revision 43349)
+++ debugger/gdbmidebugger.pp	(working copy)
@@ -5240,7 +5241,7 @@
   // Get PID
   NewPID := 0;
 
-  s := GetPart(['Attaching to process '], [LineEnding], CmdResp, True, False);
+  s := GetPart(['Attaching to process '], [LineEnding, '.'], CmdResp, True, False);
   if s <> '' then
     NewPID := StrToIntDef(s, 0);
 
GetPidPatch.diff (466 bytes)   

Martin Friebe

2013-11-03 23:31

manager   ~0071130

Thanks, applied

Issue History

Date Modified Username Field Change
2013-11-03 14:05 Joost van der Sluis New Issue
2013-11-03 14:05 Joost van der Sluis Status new => assigned
2013-11-03 14:05 Joost van der Sluis Assigned To => Martin Friebe
2013-11-03 14:05 Joost van der Sluis File Added: GetPidPatch.diff
2013-11-03 23:31 Martin Friebe Fixed in Revision => 43366
2013-11-03 23:31 Martin Friebe LazTarget - => 1.2
2013-11-03 23:31 Martin Friebe Note Added: 0071130
2013-11-03 23:31 Martin Friebe Status assigned => resolved
2013-11-03 23:31 Martin Friebe Fixed in Version => 1.2.0
2013-11-03 23:31 Martin Friebe Resolution open => fixed
2013-11-03 23:31 Martin Friebe Target Version => 1.2.0
2014-10-21 17:08 Joost van der Sluis Status resolved => closed