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

Pedro Alves palves@redhat.com
Tue Jun 20 10:12:00 GMT 2017


On 06/20/2017 10:20 AM, Yao Qi wrote:
> This patch doesn't change the registers layout in gdbserver, because
> gdb/regformats/i386/i386-linux.dat isn't affected by this patch.  

...

> It
> determines the register layout for i386-linux, in which "orig_eax" is
> already put the end of list, thanks to sort-regs.xsl.

Ok, that's for gdbserver, while I was worrying more about gdb, but
it's a good hint.  The feature xml files hardcode register numbers,
and the move ends up being a nop.  Good.

> 
> This patch only changes the order of iterating features and registers in
> GDB, however, the order doesn't matter.
> 

> The GDB's understanding to g/G packet layout is not changed, verified by
> "maintenance print remote-registers",

Great, thanks for confirming.

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list