From 9a5d3e6c4a50b2ef1bef98d7c8e709ccdbe47e27 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 13 Nov 2025 16:46:53 -0500 Subject: [PATCH] gdb: remove tic6x .dat files The tix6x gdbserver port was modified to use target descriptions in commit 506fe5f49967 ("Change tic6x target descriptions"). The old regformats .dat files were kept as a way to make sure the new target descriptions matched the old register decsriptions. I think by now it's not necessary to keep the .dat files. I don't have a way to build-test this though. Change-Id: Ia90b5ae6381234c6e95555201d3e65ed9be880ea Approved-By: Tom Tromey --- gdb/config/djgpp/fnchange.lst | 6 --- gdb/regformats/tic6x-c62x-linux.dat | 41 --------------- gdb/regformats/tic6x-c64x-linux.dat | 73 -------------------------- gdb/regformats/tic6x-c64xp-linux.dat | 76 ---------------------------- gdbserver/configure.srv | 9 +--- gdbserver/linux-tic6x-low.cc | 16 ------ 6 files changed, 1 insertion(+), 220 deletions(-) delete mode 100644 gdb/regformats/tic6x-c62x-linux.dat delete mode 100644 gdb/regformats/tic6x-c64x-linux.dat delete mode 100644 gdb/regformats/tic6x-c64xp-linux.dat diff --git a/gdb/config/djgpp/fnchange.lst b/gdb/config/djgpp/fnchange.lst index 3e77bece2fc..be10b57faab 100644 --- a/gdb/config/djgpp/fnchange.lst +++ b/gdb/config/djgpp/fnchange.lst @@ -355,12 +355,6 @@ @V@/gdb/regformats/rs6000/powerpc-isa205-vsx64l.dat @V@/gdb/regformats/rs6000/ppciv64l.dat @V@/gdb/regformats/rs6000/powerpc-vsx32l.dat @V@/gdb/regformats/rs6000/ppc-v32l.dat @V@/gdb/regformats/rs6000/powerpc-vsx64l.dat @V@/gdb/regformats/rs6000/ppc-v64l.dat -@V@/gdb/regformats/tic6x-c62x.dat @V@/gdb/regformats/c6x-62x.dat -@V@/gdb/regformats/tic6x-c64x.dat @V@/gdb/regformats/c6x-64x.dat -@V@/gdb/regformats/tic6x-c64xp.dat @V@/gdb/regformats/c6xc64xp.dat -@V@/gdb/regformats/tic6x-c62x-linux.dat @V@/gdb/regformats/c6x-62xl.dat -@V@/gdb/regformats/tic6x-c64x-linux.dat @V@/gdb/regformats/c6x-64xl.dat -@V@/gdb/regformats/tic6x-c64xp-linux.dat @V@/gdb/regformats/c6x64xpl.dat @V@/gdb/remote-e7000.c @V@/gdb/rmt-e7000.c @V@/gdb/remote-est.c @V@/gdb/rmt-est.c @V@/gdb/remote-mips.c @V@/gdb/rmt-mips.c diff --git a/gdb/regformats/tic6x-c62x-linux.dat b/gdb/regformats/tic6x-c62x-linux.dat deleted file mode 100644 index 0818ace3cbb..00000000000 --- a/gdb/regformats/tic6x-c62x-linux.dat +++ /dev/null @@ -1,41 +0,0 @@ -# THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi :set ro: -# Generated from: tic6x-c62x-linux.xml -name:tic6x_c62x_linux -feature:1 -xmltarget:tic6x-c62x-linux.xml -expedite:A15,PC -osabi:GNU/Linux -32:A0 -32:A1 -32:A2 -32:A3 -32:A4 -32:A5 -32:A6 -32:A7 -32:A8 -32:A9 -32:A10 -32:A11 -32:A12 -32:A13 -32:A14 -32:A15 -32:B0 -32:B1 -32:B2 -32:B3 -32:B4 -32:B5 -32:B6 -32:B7 -32:B8 -32:B9 -32:B10 -32:B11 -32:B12 -32:B13 -32:B14 -32:B15 -32:CSR -32:PC diff --git a/gdb/regformats/tic6x-c64x-linux.dat b/gdb/regformats/tic6x-c64x-linux.dat deleted file mode 100644 index fafa53a4004..00000000000 --- a/gdb/regformats/tic6x-c64x-linux.dat +++ /dev/null @@ -1,73 +0,0 @@ -# THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi :set ro: -# Generated from: tic6x-c64x-linux.xml -name:tic6x_c64x_linux -feature:1 -xmltarget:tic6x-c64x-linux.xml -expedite:A15,PC -osabi:GNU/Linux -32:A0 -32:A1 -32:A2 -32:A3 -32:A4 -32:A5 -32:A6 -32:A7 -32:A8 -32:A9 -32:A10 -32:A11 -32:A12 -32:A13 -32:A14 -32:A15 -32:B0 -32:B1 -32:B2 -32:B3 -32:B4 -32:B5 -32:B6 -32:B7 -32:B8 -32:B9 -32:B10 -32:B11 -32:B12 -32:B13 -32:B14 -32:B15 -32:CSR -32:PC -32:A16 -32:A17 -32:A18 -32:A19 -32:A20 -32:A21 -32:A22 -32:A23 -32:A24 -32:A25 -32:A26 -32:A27 -32:A28 -32:A29 -32:A30 -32:A31 -32:B16 -32:B17 -32:B18 -32:B19 -32:B20 -32:B21 -32:B22 -32:B23 -32:B24 -32:B25 -32:B26 -32:B27 -32:B28 -32:B29 -32:B30 -32:B31 diff --git a/gdb/regformats/tic6x-c64xp-linux.dat b/gdb/regformats/tic6x-c64xp-linux.dat deleted file mode 100644 index 56fc3d78c20..00000000000 --- a/gdb/regformats/tic6x-c64xp-linux.dat +++ /dev/null @@ -1,76 +0,0 @@ -# THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi :set ro: -# Generated from: tic6x-c64xp-linux.xml -name:tic6x_c64xp_linux -feature:1 -xmltarget:tic6x-c64xp-linux.xml -expedite:A15,PC -osabi:GNU/Linux -32:A0 -32:A1 -32:A2 -32:A3 -32:A4 -32:A5 -32:A6 -32:A7 -32:A8 -32:A9 -32:A10 -32:A11 -32:A12 -32:A13 -32:A14 -32:A15 -32:B0 -32:B1 -32:B2 -32:B3 -32:B4 -32:B5 -32:B6 -32:B7 -32:B8 -32:B9 -32:B10 -32:B11 -32:B12 -32:B13 -32:B14 -32:B15 -32:CSR -32:PC -32:A16 -32:A17 -32:A18 -32:A19 -32:A20 -32:A21 -32:A22 -32:A23 -32:A24 -32:A25 -32:A26 -32:A27 -32:A28 -32:A29 -32:A30 -32:A31 -32:B16 -32:B17 -32:B18 -32:B19 -32:B20 -32:B21 -32:B22 -32:B23 -32:B24 -32:B25 -32:B26 -32:B27 -32:B28 -32:B29 -32:B30 -32:B31 -32:TSR -32:ILC -32:RILC diff --git a/gdbserver/configure.srv b/gdbserver/configure.srv index 6281cdadc2a..7de03929bc2 100644 --- a/gdbserver/configure.srv +++ b/gdbserver/configure.srv @@ -359,14 +359,7 @@ case "${gdbserver_host}" in srv_linux_regsets=yes srv_linux_thread_db=yes ;; - tic6x-*-uclinux) if $development; then - srv_regobj="tic6x-c64xp-linux.o" - srv_regobj="${srv_regobj} tic6x-c64x-linux.o" - srv_regobj="${srv_regobj} tic6x-c62x-linux.o" - else - srv_regobj="" - fi - srv_tgtobj="$srv_linux_obj linux-tic6x-low.o" + tic6x-*-uclinux) srv_tgtobj="$srv_linux_obj linux-tic6x-low.o" srv_tgtobj="${srv_tgtobj} arch/tic6x.o" srv_linux_regsets=yes srv_linux_usrregs=yes diff --git a/gdbserver/linux-tic6x-low.cc b/gdbserver/linux-tic6x-low.cc index 4400ede053e..b81863ba64c 100644 --- a/gdbserver/linux-tic6x-low.cc +++ b/gdbserver/linux-tic6x-low.cc @@ -411,22 +411,6 @@ tic6x_target::get_regs_info () return &myregs_info; } -#if GDB_SELF_TEST -#include "gdbsupport/selftest.h" - -namespace selftests { -namespace tdesc { -static void -tic6x_tdesc_test () -{ - SELF_CHECK (*tdesc_tic6x_c62x_linux == *tic6x_read_description (C6X_CORE)); - SELF_CHECK (*tdesc_tic6x_c64x_linux == *tic6x_read_description (C6X_GP)); - SELF_CHECK (*tdesc_tic6x_c64xp_linux == *tic6x_read_description (C6X_C6XP)); -} -} -} -#endif - /* The linux target ops object. */ linux_process_target *the_linux_target = &the_tic6x_target;