From: Datoda <datoda@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: PTRACE_SYSCALL
Date: Thu, 1 Aug 2002 12:37:47 -0700 (PDT) [thread overview]
Message-ID: <20020801193747.78477.qmail@web11203.mail.yahoo.com> (raw)
Hi,
I have played with this ptrace request a bit on
ia32 and there are a few things unclear to me. Could
someone please answer my questions? TIA.
o When the child enters a system call, and the parent
regains control after issuing PTRACE_SYSCALL, where is
the system call number stored? I guess it's either in
%eax or in orig_eax (at 0x24(esp)) of the child, but
values in both places seem invalid in my own
experiments.
o According to the man page, the child is interrupted
twice for each system call, once at the entry and once
at the exit. Intriguingly, when parent inspects the
eip of the child at both interruptions, the two eip's
are the same. What is the explanation for this?
Furthermore, the eip of the child seems to always
point at the instruction after "int". Why is that the
case?
o Is there a good document that covers PTRACE_SYSCALL
or ptrace in general?
Your answers are appreciated.
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
reply other threads:[~2002-08-01 19:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020801193747.78477.qmail@web11203.mail.yahoo.com \
--to=datoda@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®