IDE has 2 functions to read '/proc/NN/cmdline'
Original Reporter info from Mantis: Alextp
-
Reporter name: CudaText man
Original Reporter info from Mantis: Alextp
- Reporter name: CudaText man
Description:
Find in Files-> finds 2 places of '/cmdline'.
/home/user/lazarus/debugger/debugattachdialog.pas
/home/user/lazarus/debugger/debugattachdialog.pas (113,60) S := TFileStreamUTF8.Create('/proc/' + IntToStr(Pid) + '/cmdline', fmOpenRead or...
/home/user/lazarus/ide/ideguicmdline.pas
/home/user/lazarus/ide/ideguicmdline.pas (92,39) Filename:='/proc/'+IntToStr(aPID)+'/cmdline';
2 funcs do the same. One reads file via AssignFile, other reads file via TStringList.LoadFromFile.
DRY.
Mantis conversion info:
- Mantis ID: 36145
- Version: 2.1 (SVN)
- Fixed in revision: r62770 (#f867f60b)