What about a modular linux kernel debugger?. Using a
module instead of a kernel patch permits debugging
after booting but sometimes it is what people is
looking for.(sorry for my english). Maybe a
combination of patch and module, with different
functionality. I did one for debugging my final year
project. It is not very good code as I learned C
programming in this project. By the moment, works only
with x86 uniprocessor systems and synchronization is
awful but worked for me with kernel 2.4.XX. Also it
does not have all the great functionallity kgdb has. I
pretended debugging other things appart from Linux
with it. That's why I used x86 task gates with all its
consequences(TLB flush,efficiency...). The idea is
close to Adeos first proposal (overwrite interrupt
descriptor table)-> one table of exception functions
for each operating system I want to debug, and falls
back to Linux int1,int3 handlers when no debugger
available(one can attach a serial debugger,..., all
tansparent to Linux).
_______________________________________________________________
Copa del Mundo de la FIFA 2002
El único lugar de Internet con vídeos de los 64 partidos.
¡Apúntante ya! en http://fifaworldcup.yahoo.com/fc/es/
|