Quoting Nate Eldredge <[email protected]> (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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[email protected]"

Reply via email to