Top "Ptrace" questions

The ptrace() system call provides a means by which a parent process may observe and control the execution of another process, and examine and change its core image and registers.

PTRACE_ATTACH not permitted for

For some reason i am not able to attach to my very own processes?! Works fine if i try strace …

c linux process ptrace
How to use PTRACE to get a consistent view of multiple threads?

While I was working on this question, I've come across a possible idea that uses ptrace, but I'm unable to …

c linux multithreading pthreads ptrace
How to change compiler in Xcode C++

I've been searching for quite some time, and I can't seem to find out how to change the compiler on …

c++ xcode macos ptrace
PTrace: linux/user.h: No such file or directory

I am using Ubuntu 12.04 with linux-headers-3.2.0-60 on intel 32-bit machine.I am trying to build this simple program to …

linux ubuntu-12.04 ptrace
How to trace a process for system calls?

I am trying to code a program that traces itself for system calls. I am having a difficult time making …

c linux system-calls ptrace
Using ptrace to track all execve() calls across children

I am trying to write a tool on Linux CentOS to track all spawned processes and what is run. In …

c linux system-calls ptrace
gdb cannot attach to process

Here is the OS I am using: Linux securecluster 4.9.8-moby #1 SMP Wed Feb 8 09:56:43 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux When …

linux docker gdb ptrace
How does ptrace work in Linux?

The ptrace system call allows the parent process to inspect the attached child. For example, in Linux, strace (which is …

c linux debugging strace ptrace
Reading ELF String Table on Linux from C

I want to write a program which reads the string table of a binary. Binary is in ELF running on …

elf ptrace
Difference between ptrace(PTRACE_PEEKUSER) and ptrace(PTRACE_PEEKDATA)?

After posting a lot of questions on ptrace (the most recent 5 questions are mine :( ) I finally got the desired output …

c system-calls strace ptrace