Debugging init process.

pluknet pluknet at gmail.com
Tue Mar 10 13:13:52 PDT 2009


2009/3/10 vasanth raonaik <vasanth.raonaik at gmail.com>:
> Hello Team,
>
> I need to debug init process. I am not able to attach init to gdb and it
> throws
>

That is because init is a system process, which you cannot trace by design
(see ptrace(2)).

$ ps -o flags -p 1
      F
10004200

, where from ps(1):
               P_SYSTEM            0x00200      System proc: no sigs,
stats or swapping

-- 
wbr,
pluknet


More information about the freebsd-hackers mailing list