Debugging init process.
Alexander Leidinger
Alexander at Leidinger.net
Wed Mar 11 00:51:50 PDT 2009
Quoting Nate Eldredge <neldredge at math.ucsd.edu> (from Tue, 10 Mar 2009
19:02:16 -0700 (PDT)):
> On Tue, 10 Mar 2009, vasanth raonaik wrote:
>
>> Hello Team,
>>
>> I need to debug init process. I am not able to attach init to gdb and it
>> throws
>
> As others mentioned, this is explicitly disabled. You could
> re-enable it by hacking the kernel, but it could cause other
> unexpected problems.
>
> Alternatively, there's always "printf debugging".
>
> What is wrong with init, that you need to debug it? It's a fairly
> simple program that's been around for a long time and should be
> pretty stable.
If this is on -current and depending on the problem, dtrace may be an
option (I don't know if it special-cases init or not).
Bye,
Alexander.
--
Don't interfere with the stranger's style.
http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
More information about the freebsd-hackers
mailing list