lug-bg: Kernel source level debug( was Linux Mandrake 8.2 - dial up problem )
- Subject: lug-bg: Kernel source level debug( was Linux Mandrake 8.2 - dial up problem )
- From: whitefang@xxxxxx ( )
- Date: Thu, 11 Apr 2002 17:20:29 +0300
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Ot sportna "zloba" shte probwam I poprawkata koqto predlagash dnes.
> Imam oshte edin wypros (az idwam ot sweta na windows i pochti ne sym
> probwal da pisha software pod linux) - kak se debugwa kernela ?
> W smisyl ima li analog na Softice ?
>
> Ico
Àç ëè÷íî áèõ òè ïðåïîðú÷àë äà ñå âñëóøàø â èçêàçâàíåòî íà Ëèíóñ, ïî
ïîâîä íà òîâà, ÷å èçïîëçâàíåòî íà "êîíâåíöèîíàëåí" äåáúãåð ïîìàãà åäèíñòâíî
çà îòêðèâàíåòî íà "ñèìïòîìèòå", íî íå è íà ïðè÷èíàòà. Ñåðèîçíèòå áúãîâå â
êúðíúë êîäà ñà "êîíöåïòóàëíè" è êîíâåíöèîíàëíèÿ äåáúãåð å "useless". Îñâåí
òîâà ñ íåãî íå ìîæåø äà îòêðèåø åäèí êóï îò äðóãèòå òèïè÷íè çà òîçè âèä
ïðîãðàìèðàíå ãðåøêè - race conditions, deadlocks due to race conditions & so
on.  ïîâå÷åòî ñë. ïèñàíåòî â ëîã-à ñ printk() å "sufficient" äà ñè ðåøèø
ïðîáëåìèòå.
Èíà÷å èìà ñïåöèàëåí ïà÷ çà êåðíåë-à - kgdb, ñ êîéòî ìîæåø äà debug-âàø "live"
êúðíúë, êàòî èçïîëçâàø äâå ìàøèíè( ïîäîáíî íà êúðíúë äåáúãåð-à íà M$shit ,
êîéòî èäâà ñ WinXXXX DDK-òî ) http://kgdb.sourceforge.net.
Äðóãèÿ âàðèàíò å ò.í. "Userspace Linux" ( íå ñå ñåùàì çà url-òî )- run-âàø ñè
âòîðè êúðíúë âúâ âèðòóàëíà ìàøèíà è ñè ãî äåáúãâàø êàòî userspace ïðîöåñ.( íà
åäíà ìàøèíà ).
Åêâèâàëåíò íà SoftICE ïîíå íà ìåí íå ìè å èçâåñòåí.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8tZu+mx3uqe61brwRAj9VAJwL2EGIGZNJqD69f6TEBtYNPqMp4QCdFDhx
6rOKQ3sH0I9XQp/MC6yPYf0=
=0kHJ
-----END PGP SIGNATURE-----
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|