public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Alan Hayward <Alan.Hayward@arm.com>
To: Simon Marchi <simon.marchi@efficios.com>
Cc: gdb-patches <gdb-patches@sourceware.org>, nd <nd@arm.com>
Subject: Re: [PATCH 2/3] gdb, gdbserver: remove ARM regdat files
Date: Wed, 17 Jun 2020 08:06:00 +0000	[thread overview]
Message-ID: <5584E519-A186-4BB5-9DBF-31ABAF0B2D93@arm.com> (raw)
In-Reply-To: <20200617022736.1506-2-simon.marchi@efficios.com>



> On 17 Jun 2020, at 03:27, Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> wrote:
> 
> This patch removes the leftover regformats .dat files for the arm
> architecture.  There are no longer relevant, since the arm architecture
> has been converted to use feature-based target-descriptions.  These .dat
> files are used by GDBserver ports that still use static target
> descriptions.

I should have removed these when I was removing the corresponding Arm .xml files.
Thanks for cleaning these up.

> 
> These .dat files are generated from corresponding .xml files in the
> features directory.  And since the corresponding .xml files for these
> arm .dat files don't exist anymore, it is impossible to re-generated
> them.  If you delete these .dat files and type "make" in the features
> directory, you'll get:
> 
>  make: *** No rule to make target '../regformats/arm/arm-with-iwmmxt.dat', needed by 'all'.  Stop.
> 
> So it removes the entries in the `WHICH` variable of
> gdb/features/Makefile.
> 
> Finally, it removes the rule in gdbserver/Makefile to generate .cc files
> from `../gdb/regformats/arm/%.dat`.
> 
> gdb/ChangeLog:
> 
> 	* features/Makefile (WHICH): Remove arm files.
> 	* regformats/arm/arm-with-iwmmxt.dat: Remove.
> 	* regformats/arm/arm-with-neon.dat: Remove.
> 	* regformats/arm/arm-with-vfpv2.dat: Remove.
> 	* regformats/arm/arm-with-vfpv3.dat: Remove.
> 
> gdbserver/ChangeLog:
> 
> 	* Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
> 	Remove.
> ---
> gdb/features/Makefile                  |  4 +-
> gdb/regformats/arm/arm-with-iwmmxt.dat | 53 ---------------------
> gdb/regformats/arm/arm-with-neon.dat   | 64 --------------------------
> gdb/regformats/arm/arm-with-vfpv2.dat  | 48 -------------------
> gdb/regformats/arm/arm-with-vfpv3.dat  | 64 --------------------------
> gdbserver/Makefile.in                  |  3 --
> 6 files changed, 1 insertion(+), 235 deletions(-)
> delete mode 100644 gdb/regformats/arm/arm-with-iwmmxt.dat
> delete mode 100644 gdb/regformats/arm/arm-with-neon.dat
> delete mode 100644 gdb/regformats/arm/arm-with-vfpv2.dat
> delete mode 100644 gdb/regformats/arm/arm-with-vfpv3.dat
> 

Patch looks good to me.


> diff --git a/gdb/features/Makefile b/gdb/features/Makefile
> index 2a409dde39a..f2dd279eb69 100644
> --- a/gdb/features/Makefile
> +++ b/gdb/features/Makefile
> @@ -44,9 +44,7 @@
> #   make GDB=/path/to/gdb XMLTOC="xml files" FEATURE_XMLFILES="xml files" cfiles
> 
> # List of .dat files to create in ../regformats/
> -WHICH = arm/arm-with-iwmmxt arm/arm-with-vfpv2 arm/arm-with-vfpv3 \
> -	arm/arm-with-neon \
> -	mips-linux mips-dsp-linux \
> +WHICH = mips-linux mips-dsp-linux \
> 	microblaze-with-stack-protect \
> 	mips64-linux mips64-dsp-linux \
> 	nios2-linux \
> diff --git a/gdb/regformats/arm/arm-with-iwmmxt.dat b/gdb/regformats/arm/arm-with-iwmmxt.dat
> deleted file mode 100644
> index f529c2c493c..00000000000
> --- a/gdb/regformats/arm/arm-with-iwmmxt.dat
> +++ /dev/null
> @@ -1,53 +0,0 @@
> -# THIS FILE IS GENERATED.  -*- buffer-read-only: t -*- vi :set ro:
> -# Generated from: arm/arm-with-iwmmxt.xml
> -name:arm_with_iwmmxt
> -xmltarget:arm-with-iwmmxt.xml
> -expedite:r11,sp,pc
> -32:r0
> -32:r1
> -32:r2
> -32:r3
> -32:r4
> -32:r5
> -32:r6
> -32:r7
> -32:r8
> -32:r9
> -32:r10
> -32:r11
> -32:r12
> -32:sp
> -32:lr
> -32:pc
> -0:
> -0:
> -0:
> -0:
> -0:
> -0:
> -0:
> -0:
> -0:
> -32:cpsr
> -64:wR0
> -64:wR1
> -64:wR2
> -64:wR3
> -64:wR4
> -64:wR5
> -64:wR6
> -64:wR7
> -64:wR8
> -64:wR9
> -64:wR10
> -64:wR11
> -64:wR12
> -64:wR13
> -64:wR14
> -64:wR15
> -32:wCSSF
> -32:wCASF
> -32:wCGR0
> -32:wCGR1
> -32:wCGR2
> -32:wCGR3
> diff --git a/gdb/regformats/arm/arm-with-neon.dat b/gdb/regformats/arm/arm-with-neon.dat
> deleted file mode 100644
> index 2e6cb85cf4b..00000000000
> --- a/gdb/regformats/arm/arm-with-neon.dat
> +++ /dev/null
> @@ -1,64 +0,0 @@
> -# THIS FILE IS GENERATED.  -*- buffer-read-only: t -*- vi :set ro:
> -# Generated from: arm/arm-with-neon.xml
> -name:arm_with_neon
> -xmltarget:arm-with-neon.xml
> -expedite:r11,sp,pc
> -32:r0
> -32:r1
> -32:r2
> -32:r3
> -32:r4
> -32:r5
> -32:r6
> -32:r7
> -32:r8
> -32:r9
> -32:r10
> -32:r11
> -32:r12
> -32:sp
> -32:lr
> -32:pc
> -0:
> -0:
> -0:
> -0:
> -0:
> -0:
> -0:
> -0:
> -0:
> -32:cpsr
> -64:d0
> -64:d1
> -64:d2
> -64:d3
> -64:d4
> -64:d5
> -64:d6
> -64:d7
> -64:d8
> -64:d9
> -64:d10
> -64:d11
> -64:d12
> -64:d13
> -64:d14
> -64:d15
> -64:d16
> -64:d17
> -64:d18
> -64:d19
> -64:d20
> -64:d21
> -64:d22
> -64:d23
> -64:d24
> -64:d25
> -64:d26
> -64:d27
> -64:d28
> -64:d29
> -64:d30
> -64:d31
> -32:fpscr
> diff --git a/gdb/regformats/arm/arm-with-vfpv2.dat b/gdb/regformats/arm/arm-with-vfpv2.dat
> deleted file mode 100644
> index aa71f85bcb2..00000000000
> --- a/gdb/regformats/arm/arm-with-vfpv2.dat
> +++ /dev/null
> @@ -1,48 +0,0 @@
> -# THIS FILE IS GENERATED.  -*- buffer-read-only: t -*- vi :set ro:
> -# Generated from: arm/arm-with-vfpv2.xml
> -name:arm_with_vfpv2
> -xmltarget:arm-with-vfpv2.xml
> -expedite:r11,sp,pc
> -32:r0
> -32:r1
> -32:r2
> -32:r3
> -32:r4
> -32:r5
> -32:r6
> -32:r7
> -32:r8
> -32:r9
> -32:r10
> -32:r11
> -32:r12
> -32:sp
> -32:lr
> -32:pc
> -0:
> -0:
> -0:
> -0:
> -0:
> -0:
> -0:
> -0:
> -0:
> -32:cpsr
> -64:d0
> -64:d1
> -64:d2
> -64:d3
> -64:d4
> -64:d5
> -64:d6
> -64:d7
> -64:d8
> -64:d9
> -64:d10
> -64:d11
> -64:d12
> -64:d13
> -64:d14
> -64:d15
> -32:fpscr
> diff --git a/gdb/regformats/arm/arm-with-vfpv3.dat b/gdb/regformats/arm/arm-with-vfpv3.dat
> deleted file mode 100644
> index 6fec4fd8f5d..00000000000
> --- a/gdb/regformats/arm/arm-with-vfpv3.dat
> +++ /dev/null
> @@ -1,64 +0,0 @@
> -# THIS FILE IS GENERATED.  -*- buffer-read-only: t -*- vi :set ro:
> -# Generated from: arm/arm-with-vfpv3.xml
> -name:arm_with_vfpv3
> -xmltarget:arm-with-vfpv3.xml
> -expedite:r11,sp,pc
> -32:r0
> -32:r1
> -32:r2
> -32:r3
> -32:r4
> -32:r5
> -32:r6
> -32:r7
> -32:r8
> -32:r9
> -32:r10
> -32:r11
> -32:r12
> -32:sp
> -32:lr
> -32:pc
> -0:
> -0:
> -0:
> -0:
> -0:
> -0:
> -0:
> -0:
> -0:
> -32:cpsr
> -64:d0
> -64:d1
> -64:d2
> -64:d3
> -64:d4
> -64:d5
> -64:d6
> -64:d7
> -64:d8
> -64:d9
> -64:d10
> -64:d11
> -64:d12
> -64:d13
> -64:d14
> -64:d15
> -64:d16
> -64:d17
> -64:d18
> -64:d19
> -64:d20
> -64:d21
> -64:d22
> -64:d23
> -64:d24
> -64:d25
> -64:d26
> -64:d27
> -64:d28
> -64:d29
> -64:d30
> -64:d31
> -32:fpscr
> diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in
> index 7321ba12c2e..9d7687be534 100644
> --- a/gdbserver/Makefile.in
> +++ b/gdbserver/Makefile.in
> @@ -555,9 +555,6 @@ target/%.o: ../gdb/target/%.c
> %-generated.cc: ../gdb/regformats/%.dat $(regdat_sh)
> 	$(ECHO_REGDAT) $(SHELL) $(regdat_sh) $< $@
> 
> -%-generated.cc: ../gdb/regformats/arm/%.dat $(regdat_sh)
> -	$(ECHO_REGDAT) $(SHELL) $(regdat_sh) $< $@
> -
> %-generated.cc: ../gdb/regformats/rs6000/%.dat $(regdat_sh)
> 	$(ECHO_REGDAT) $(SHELL) $(regdat_sh) $< $@
> 
> -- 
> 2.27.0
> 


  reply	other threads:[~2020-06-17  8:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-17  2:27 [PATCH 1/3] gdb/features: remove rx.xml from XMLTOC list Simon Marchi
2020-06-17  2:27 ` [PATCH 2/3] gdb, gdbserver: remove ARM regdat files Simon Marchi
2020-06-17  8:06   ` Alan Hayward [this message]
2020-06-17 18:44     ` Simon Marchi
2020-06-17  2:27 ` [PATCH 3/3] gdb/regformats: remove unused regformats/reg-*.dat Simon Marchi
2020-06-17 16:01   ` Tom Tromey
2020-06-17 18:44     ` Simon Marchi
2020-06-17 15:56 ` [PATCH 1/3] gdb/features: remove rx.xml from XMLTOC list Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5584E519-A186-4BB5-9DBF-31ABAF0B2D93@arm.com \
    --to=alan.hayward@arm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=nd@arm.com \
    --cc=simon.marchi@efficios.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).