>When I run UML in debug mode, and the kernel stops at a breakpoint that I >set, how do I know in which process context did it stop >(example: when it stops at do_fork - how do I know which process is now >forking ? (gdb) print *(struct task_struct *)get_current() ..this give you tast_struct of current process. EXAMPLE: (gdb) print (*(struct task_struct *)get_current())->comm $10 = "swapper\0\0\0\0\0\0\0\0" ------------------------------------------------------------------------------------------------------------------------------------------------------------- PGP PKEY http://pgp.mit.edu:11371/pks/lookup?search=belch76@libero.it&op=index ICQ# 104896040 Netphone/Fax 178.605.7063 Homepage http://web.tiscali.it/bellucda ------------------------------------------------------------------------------------------------------------------------------------------------------------- Daniele Bellucci -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/