PATCH: Check DS segment register for x32 process
Mike Frysinger
vapier@gentoo.org
Sat May 12 03:13:00 GMT 2012
On Friday 11 May 2012 16:25:00 Mark Kettenis wrote:
> From: "H.J. Lu" <hongjiu.lu@intel.com>
> > This patch checks DS segment register for x32 process. Tested on
> > Linux/x86-64. OK to install?
> >
> > --- a/gdb/amd64-linux-nat.c
> > +++ b/gdb/amd64-linux-nat.c
> >
> > + if (sizeof (void *) == 4 && is_64bit && !is_x32)
> > + error (_("Can't debug 64-bit process with 32-bit GDB"));
>
> I really think we should refuse to even build a GDB as an X32 binary.
huh ? why would we restrict the host ABI ? i plan on doing pure x32
installs.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20120512/9695e7e7/attachment.sig>
More information about the Gdb-patches
mailing list