Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 24 Mar 2013 21:35:25 +0100 (CET)
From: Pavel Kankovsky <>
Subject: Re: strace

On Sat, 23 Mar 2013, Dmitry V. Levin wrote:

> Who could suppose at the time of adding PTRACE_GETREGS support that the
> structure returned by PTRACE_GETREGS on 2.6.18-based i386 kernel is not
> "struct pt_regs" from kernel's <asm/ptrace.h> but
> "struct user_regs_struct" from libc's <sys/user.h>?

Well, the description of PTRACE_GETREGS in ptrace(2) says "See
<linux/user.h> for information on the format of this data." Moreover,
struct user_regs_struct is the format you'd get from PTRACE_PEEKUSER if
you enumerated all relevant offsets.

Pavel Kankovsky aka Peak                          / Jeremiah 9:21        \
"For death is come up into our MS Windows(tm)..." \ 21st century edition /

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.