Re: No PTRACE_READDATA for archs other than SPARC?

Daniel Jacobowitz (dmj+@andrew.cmu.edu)
Wed, 29 May 2002 20:48:12 -0400


On Wed, May 29, 2002 at 05:31:18PM -0700, David S. Miller wrote:
> From: Daniel Jacobowitz <dmj+@andrew.cmu.edu>
> Date: Wed, 29 May 2002 19:49:51 -0400
>
> On Sun, May 19, 2002 at 09:40:53PM -0700, David S. Miller wrote:
> > If other platforms added PTRACE_READDATA support, they would
> > also need to add some way to do a feature test for it's presence
> > so that GDB and other debugging code could actually make use
> > of it portably.
>
> Not really, we should just get EINVAL (ENOSYS?) back when we try to use
> it, right?
>
> You'd get -EIO, but otherwise yes you are right.

Really? That's inconvenient; the same result as for an invalid memory
address.

Oh well, it can still be worked around in GDB. I'd like to see this on
more/all architectures.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/