This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch/rfc] gdb: clean up x86 cpuid implementations
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 06 May 2013 22:44:11 +0300
- Subject: Re: [patch/rfc] gdb: clean up x86 cpuid implementations
- References: <201305061451 dot 24861 dot vapier at gentoo dot org>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Mike Frysinger <vapier@gentoo.org>
> Date: Mon, 6 May 2013 14:51:24 -0400
>
> We've currently got 3 files doing open coded implementations of cpuid.
> Each has its own set of workarounds and varying levels of how well
> they're written and are generally hardcoded to specific cpuid functions.
> If you try to build the latest gdb as a PIE on an i386 system, the build
> will fail because one of them lacks PIC workarounds (wrt ebx).
Sorry, I don't follow: what workarounds, and why are they needed?
And what's PIE got to do with the go32 target?
The current code in go32-nat.c was tested to work in all the
environments supported by that target, without GPFaulting or
triggering any other disasters. I don't think we have the resources
to repeat all that testing with the new code, which tries to detect
newer CPUs, and so could trigger SIGILL. So I'd like to leave
go32-nat.c alone, if possible.