Date: Thu, 12 Mar 2009 11:41:55 +0100 From: Alexander Leidinger <Alexander@Leidinger.net> To: Marius =?utf-8?b?TsO8bm5lcmljaA==?= <marius@nuenneri.ch> Cc: Nate Eldredge <neldredge@math.ucsd.edu>, freebsd-hackers@freebsd.org, vasanth raonaik <vasanth.raonaik@gmail.com> Subject: Re: Debugging init process. Message-ID: <20090312114155.19306tatpgd1ebk0@webmail.leidinger.net> In-Reply-To: <b649e5e0903110754k59ff61e8u2f41b88cee475949@mail.gmail.com> References: <d9f479c10903100953w4c600775oc06b997b67c472d6@mail.gmail.com> <Pine.GSO.4.64.0903101900160.3173@zeno.ucsd.edu> <20090311085138.23982deb8g8234w0@webmail.leidinger.net> <b649e5e0903110754k59ff61e8u2f41b88cee475949@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Marius N=C3=BCnnerich <marius@nuenneri.ch> (from Wed, 11 Mar 2009 = =20 15:54:44 +0100): > On Wed, Mar 11, 2009 at 08:51, Alexander Leidinger > <Alexander@leidinger.net> wrote: >> Quoting Nate Eldredge <neldredge@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 i= t >>>> throws >>> >>> As others mentioned, this is explicitly disabled. =C2=A0You could re-ena= ble 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? =C2=A0It'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 opt= ion >> (I don't know if it special-cases init or not). >> > > DTrace is not available for userland processes yet. Depending on what is needed (it may not be needed to attach gdb, it =20 may be sufficient to have something like ktrace, the OP didn't specify =20 the problem), DTrace may suit the needs. Bye, Alexander. --=20 Your true value depends entirely on what you are compared with. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090312114155.19306tatpgd1ebk0>