This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix i386 memory-by-register access on amd64
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: uweigand at de dot ibm dot com
- Cc: jan dot kratochvil at redhat dot com, drow at false dot org, tromey at redhat dot com, gdb-patches at sourceware dot org
- Date: Mon, 13 Jul 2009 21:30:25 +0200 (CEST)
- Subject: Re: [patch] Fix i386 memory-by-register access on amd64
- References: <200907131708.n6DH896H016447@d12av02.megacenter.de.ibm.com>
> Date: Mon, 13 Jul 2009 19:08:09 +0200 (CEST)
> From: "Ulrich Weigand" <uweigand@de.ibm.com>
>
> Jan Kratochvil wrote:
>
> > Therefore fixed linux_xfer_partial. Therefore it no longer needs
> > the fix to be present also in inf_ptrace_xfer_partial. I do not
> > know how non-Linux OSes handle the debugging of 32bit inferior on
> > 64bit GDB so I have no opinion whether the inf_ptrace_xfer_partial
> > patch makes sense, i can drop it.
>
> I think at this point it would probably be better to just to the Linux fix.
> I've looked at a couple of ptrace implementations in the Linux kernel, and
> it seems this fix should be correct on all bi-arch Linux platforms.
>
> I simply do not know enough how ptrace behaves on other OSes -- until we
> get a specific bug report on some other OS, I think we should leave the
> behaviour unchanged for now.
I agree.