Date: Tue, 10 Mar 2009 23:13:50 +0300 From: pluknet <pluknet@gmail.com> To: vasanth raonaik <vasanth.raonaik@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Debugging init process. Message-ID: <a31046fc0903101313n5bbf11b4gc217c703154ebd88@mail.gmail.com> In-Reply-To: <d9f479c10903100953w4c600775oc06b997b67c472d6@mail.gmail.com> References: <d9f479c10903100953w4c600775oc06b997b67c472d6@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2009/3/10 vasanth raonaik <vasanth.raonaik@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a31046fc0903101313n5bbf11b4gc217c703154ebd88>
