Re: PATCH: Check DS segment register for x32 process

Mike Frysinger
2012-05-12T03:13:52Z

[-- Attachment #1: Type: Text/Plain, Size: 572 bytes --]

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

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]