All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Hirst <rhirst@linuxcare.com>
To: parisc-linux@thepuffingroup.com
Subject: Re: glibc and ptrace
Date: Thu, 21 Dec 2000 13:19:24 +0000	[thread overview]
Message-ID: <20001221131924.V2554@linuxcare.com> (raw)
In-Reply-To: <20001219182257.O7166@linuxcare.com>; from rhirst@linuxcare.com on Tue, Dec 19, 2000 at 06:22:57PM +0000

On Tue, Dec 19, 2000 at 06:22:57PM +0000, Richard Hirst wrote:
> I have a problem with ptrace.  The ptrace syscall for PTRACE_PEEK*
> saves the result in *data (4th arg), whereas the man page says
> it returns the result as the return value, and the 4th arg is
> ignored.  userland things, like strace for example, expect the
> man page behaviour.  I assumed glibc should be providing a wrapper
> to translate from kernel to userland syntax, but our glibc doesn't
> appear to do so.

Turned out I had to fix glibc to use the wrapper on parisc.  This
means our strace source will be broken for new glibc builds.  I'll
fix strace once the glibc change propagates through.  If anyone
wants to fix their own strace for testing, just remove the raw_ptrace
stuff from strace/defs.h

Richard

      parent reply	other threads:[~2000-12-21 13:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-19 18:22 [parisc-linux] glibc and ptrace Richard Hirst
2000-12-19 19:59 ` Jes Sorensen
2000-12-19 20:14   ` Richard Hirst
2000-12-19 20:39     ` Jes Sorensen
2000-12-21 13:19 ` Richard Hirst [this message]

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=20001221131924.V2554@linuxcare.com \
    --to=rhirst@linuxcare.com \
    --cc=parisc-linux@thepuffingroup.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.