This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Simplify i386, amd64 and x32 expedite registers
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>, gdb-patches at sourceware dot org
- Date: Tue, 4 Oct 2016 19:43:43 +0100
- Subject: Re: [PATCH] Simplify i386, amd64 and x32 expedite registers
- Authentication-results: sourceware.org; auth=none
- References: <1475577647-29054-1-git-send-email-yao.qi@linaro.org>
On 10/04/2016 11:40 AM, Yao Qi wrote:
> Nowadays, there are a lot of duplication about
> i386/{i386, amd64, x32}*-expedite in features/Makefile. However,
> in features/Makefile, we have
>
> echo "expedite:$(if $($*-expedite),$($*-expedite),$($(firstword $(subst -, ,$(notdir $*)))-expedite))" \
> >> $(outdir)/$*.tmp
>
> which means for a given bar/foo-baz.xml, we'll look for either
> bar/foo-baz-expedite or foo-expedite. In x86 expedite registers, we
> use the former now, but it will be much simpler if we use the latter.
> This is what this patch does. This patch removes them, and defines
> three generic expedite. Re-run 'make GDB=/path/build/gdb all' to
> regenerate regformats/*.dat files, and they are not changed.
>
> gdb:
>
> 2016-10-04 Yao Qi <yao.qi@linaro.org>
>
> * features/Makefile: Remove i386/*-expedite. Add i386-expedite,
> amd64-expedite, and x32-expedite.
Wow, nice! I had no idea.
Thanks,
Pedro Alves