[RFA] New bitflags type and eflags on i386/x86-64

Michal Ludvig mludvig@suse.cz
Fri Aug 30 07:05:00 GMT 2002


Andrew Cagney wrote:
> Is there any immediate technical problem stopping x86-64 linking in 
> i386-tdep.c?  (Yes scary, multi-arch).

Yes, if both are linked, the gdbarch initialisation is attempted to be 
done twice and gdb crashes. I could add an #ifdef to optionally ignore 
some parts of i386-tdep, but IMHO it's better to introduce a new file as 
DanielJ proposed. See the patch. I've moved both new builtin types and 
their initialisation to i386-common-tdep.c and modified all 
config/i386/*.mt files to require it. This approach shouldn't harm 
MarkK's effort at all.
Any objections or can I commit it?

Michal Ludvig
-- 
* SuSE CR, s.r.o     * mludvig@suse.cz
* +420 2 9654 5373   * http://www.suse.cz
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: flags-5.diff
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20020830/39db068b/attachment.ksh>


More information about the Gdb-patches mailing list