Tag

ptrace

0 views collected around this technical thread.

Deepin Linux
Deepin Linux
Dec 14, 2024 · Fundamentals

Understanding Linux ptrace: Implementation, Usage, and Debugging Techniques

This article provides a comprehensive overview of the Linux ptrace system call, explaining its role in process debugging, detailing request parameters, demonstrating practical C examples for tracing system calls, single‑stepping, setting breakpoints, and exploring how DWARF debugging information links source code to executable addresses.

C++DWARFLinux
0 likes · 62 min read
Understanding Linux ptrace: Implementation, Usage, and Debugging Techniques
Refining Core Development Skills
Refining Core Development Skills
Dec 12, 2024 · Fundamentals

Understanding How strace Works: A Step‑by‑Step Implementation Using ptrace

This article explains the inner workings of the classic strace command by walking through a handcrafted implementation that uses ptrace to attach to a target process, capture its system calls, read the ORIG_RAX register, and print the syscall name, while also detailing the relevant kernel source code.

Linux Kerneldebuggingptrace
0 likes · 15 min read
Understanding How strace Works: A Step‑by‑Step Implementation Using ptrace
NetEase Game Operations Platform
NetEase Game Operations Platform
Feb 29, 2020 · Fundamentals

Implementing Breakpoints with GDB and Ptrace on Linux

This article explains how to create a simple breakpoint mechanism by using GDB for illustration and then reproducing the same behavior with the Linux ptrace system call, covering required knowledge about the RIP register, ELF symbols, and step‑by‑step implementation details.

GDBLinuxbreakpoint
0 likes · 10 min read
Implementing Breakpoints with GDB and Ptrace on Linux