OSWeekly: Debugging Code Using Ptrace
Apr 11, 2006, 08:15 (2 Talkback[s])
(Other stories by Puru Govind)
WEBINAR: On-demand webcast
How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 REGISTER >
[ Thanks to Shitzu for this link.
"Nobody can write perfect code, since errors can creep in from
anywhere. Hence we need some way to debug the programs. One such
way is to use ptrace() system call. Debugging programs like gdb are
dependent on this system call. This call gives one process control
over another process. The process under control can be run
step-by-step and its contents can be read and modified, i.e. you
can change the core image of it. The code for this call is
available in directory /arch/i386/kernel/ptrace.c..."
BSD Jail With LSM Framework(Sep 15, 2004)