This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 02/25] Adjust the order of 32bit-linux.xml and 32bit-sse.xml in i386/i386-linux.xml


On 06/19/2017 09:22 PM, Simon Marchi wrote:
> On 2017-06-12 10:41, Yao Qi wrote:
>> Exchange the order of 32bit-linux.xml and 32bit-sse.xml in
>> i386/i386-linux.xml, to align with other i386 linux .xml files.
>>


>> --- a/gdb/features/i386/i386-linux.xml
>> +++ b/gdb/features/i386/i386-linux.xml
>> @@ -12,6 +12,6 @@
>>    <architecture>i386</architecture>
>>    <osabi>GNU/Linux</osabi>
>>    <xi:include href="32bit-core.xml"/>
>> -  <xi:include href="32bit-linux.xml"/>
>>    <xi:include href="32bit-sse.xml"/>
>> +  <xi:include href="32bit-linux.xml"/>
>>  </target>
> 
> I think you can push this one right away as a cosmetic cleanup.

Unless this is a case of a default target description matching
the layout of targets that predated support for XML descriptions.

Could that be the case here?  From:

static void
i386_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
...
  if (! tdesc_has_registers (tdesc))
    tdesc = tdesc_i386_linux;
...

... it may well be.  So we need to tread carefully here.  The
order may be required for back compatibility.  A deeper audit
with that in mind is in order.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]