This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: lin-lwp.c and UltraSPARC
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb at sources dot redhat dot com
- Date: Fri, 31 Oct 2003 19:47:07 -0500
- Subject: Re: lin-lwp.c and UltraSPARC
- References: <200310312038.h9VKc88W000928@elgar.kettenis.dyndns.org> <1031031233150.ZM4663@localhost.localdomain>
On Fri, Oct 31, 2003 at 04:31:51PM -0700, Kevin Buettner wrote:
> On Oct 31, 9:38pm, Mark Kettenis wrote:
>
> > I'm also thinking about replacing the PTRACE_PEEKUSER with a
> > PTRACE_PEEKDATA since the latter should be implemented on all
> > architectures. In that case the call would probably fail the same way
> > on all architectures (assuming that nothing is mapped at address 0 on
> > all those architectures).
>
> This sounds like a good idea.
Yes, I agree. Interesting, this explains a number of pending Debian
bug reports... you could also PEEKDATA at an address that we expect to
be mapped. $sp might work.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer