From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76220 invoked by alias); 21 Feb 2018 12:27:43 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 76186 invoked by uid 89); 21 Feb 2018 12:27:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,KAM_LOTSOFHASH,KAM_SHORT,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy= X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 21 Feb 2018 12:27:39 +0000 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1LCRAqi024658 for ; Wed, 21 Feb 2018 07:27:38 -0500 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2g95y56yu9-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 21 Feb 2018 07:27:34 -0500 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 21 Feb 2018 12:27:32 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 21 Feb 2018 12:27:29 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1LCRSi149545364; Wed, 21 Feb 2018 12:27:28 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7E1344C044; Wed, 21 Feb 2018 12:21:05 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4FD6A4C058; Wed, 21 Feb 2018 12:21:05 +0000 (GMT) Received: from ThinkPad (unknown [9.152.212.63]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 21 Feb 2018 12:21:05 +0000 (GMT) Date: Wed, 21 Feb 2018 12:27:00 -0000 From: Philipp Rudo To: Alan Hayward Cc: Yao Qi , "gdb-patches@sourceware.org" , nd Subject: Re: [PATCH] Move arch/tdesc.h to common/common-tdesc.h In-Reply-To: References: <97948063-b3db-fd3a-f62e-b552935cb8dd@arm.com> <20180201121443.43322674@ThinkPad> <59984094-96C1-4D84-89F6-384769471005@arm.com> <86k1vqjd5s.fsf@gmail.com> <20180206185609.3219ef39@ThinkPad> <20180207100202.1ea997bb@ThinkPad> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 x-cbid: 18022112-0008-0000-0000-000004D2B3BB X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18022112-0009-0000-0000-00001E65BB76 Message-Id: <20180221132727.3296dfd4@ThinkPad> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-21_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802210153 X-IsSubscribed: yes X-SW-Source: 2018-02/txt/msg00288.txt.bz2 Hi Alan, On Tue, 20 Feb 2018 11:56:18 +0000 Alan Hayward wrote: [...] > Ok, after pushing the patch to add a common directory, I=E2=80=99ve updat= ed this > patch. Now we have the common dir, we can simply move arch/tdesc.h to > common/tdesc.h >=20 > Tested by build for x86, ppc and aarch64, using both make 4.1 and make 3.= 81. > Ran unittests for x86. Checked that my later patch series can apply on to= p. The patch looks good to me. Build tested on s390 with --enable-targets=3Da= ll and make 4.0. Thanks for doing this Philipp >=20 > 2018-02-20 Alan Hayward >=20 > gdb/ > * arch/amd64.h: Use common/tdesc.h. > * arch/i386.c: Likewise. > * arch/i386.h: Likewise. > * arch/tic6x.c: Likewise. > * arch/tdesc.h: Move file from here... > * common/tdesc.h: ...to here. > * features/aarch64-core.c: Regenerate. > * features/aarch64-fpu.c: Regenerate. > * features/i386/32bit-avx.c: Regenerate. > * features/i386/32bit-avx512.c: Regenerate. > * features/i386/32bit-core.c: Regenerate. > * features/i386/32bit-linux.c: Regenerate. > * features/i386/32bit-mpx.c: Regenerate. > * features/i386/32bit-pkeys.c: Regenerate. > * features/i386/32bit-sse.c: Regenerate. > * features/i386/64bit-avx.c: Regenerate. > * features/i386/64bit-avx512.c: Regenerate. > * features/i386/64bit-core.c: Regenerate. > * features/i386/64bit-linux.c: Regenerate. > * features/i386/64bit-mpx.c: Regenerate. > * features/i386/64bit-pkeys.c: Regenerate. > * features/i386/64bit-segments.c: Regenerate. > * features/i386/64bit-sse.c: Regenerate. > * features/i386/x32-core.c: Regenerate. > * features/tic6x-c6xp.c: Regenerate. > * features/tic6x-core.c: Regenerate. > * features/tic6x-gp.c: Regenerate. > * target-descriptions.c: Use common/tdesc.h. > * target-descriptions.h: Likewise. >=20 > gdbserver/ > * tdesc.c: Use common/tdesc.h. > * tdesc.h: Likewise. >=20 > --- > gdb/arch/amd64.h | 2 +- > gdb/arch/i386.c | 2 +- > gdb/arch/i386.h | 2 +- > gdb/arch/tic6x.c | 2 +- > gdb/{arch =3D> common}/tdesc.h | 0 > gdb/features/aarch64-core.c | 2 +- > gdb/features/aarch64-fpu.c | 2 +- > gdb/features/i386/32bit-avx.c | 2 +- > gdb/features/i386/32bit-avx512.c | 2 +- > gdb/features/i386/32bit-core.c | 2 +- > gdb/features/i386/32bit-linux.c | 2 +- > gdb/features/i386/32bit-mpx.c | 2 +- > gdb/features/i386/32bit-pkeys.c | 2 +- > gdb/features/i386/32bit-sse.c | 2 +- > gdb/features/i386/64bit-avx.c | 2 +- > gdb/features/i386/64bit-avx512.c | 2 +- > gdb/features/i386/64bit-core.c | 2 +- > gdb/features/i386/64bit-linux.c | 2 +- > gdb/features/i386/64bit-mpx.c | 2 +- > gdb/features/i386/64bit-pkeys.c | 2 +- > gdb/features/i386/64bit-segments.c | 2 +- > gdb/features/i386/64bit-sse.c | 2 +- > gdb/features/i386/x32-core.c | 2 +- > gdb/features/tic6x-c6xp.c | 2 +- > gdb/features/tic6x-core.c | 2 +- > gdb/features/tic6x-gp.c | 2 +- > gdb/gdbserver/tdesc.c | 24 ++++++++++++------------ > gdb/gdbserver/tdesc.h | 2 +- > gdb/target-descriptions.c | 28 ++++++++++++++-------------- > gdb/target-descriptions.h | 2 +- > 30 files changed, 53 insertions(+), 53 deletions(-) > rename gdb/{arch =3D> common}/tdesc.h (100%) >=20 >=20 > diff --git a/gdb/arch/amd64.h b/gdb/arch/amd64.h > index b50051f698f91c72cec104b63654e59f02f9e62a..c0c4dc27efe62ca834d00e9f7= 7066bd6338a49bd 100644 > --- a/gdb/arch/amd64.h > +++ b/gdb/arch/amd64.h > @@ -15,7 +15,7 @@ > You should have received a copy of the GNU General Public License > along with this program. If not, see .= */ >=20 > -#include "tdesc.h" > +#include "common/tdesc.h" > #include >=20 > target_desc *amd64_create_target_description (uint64_t xcr0, bool is_x32, > diff --git a/gdb/arch/i386.h b/gdb/arch/i386.h > index ffc34e39138e8faab4b5911eb8dd328164916fe3..8f3fe3ba4200e3667187a0bd5= a3956418eec1d8c 100644 > --- a/gdb/arch/i386.h > +++ b/gdb/arch/i386.h > @@ -15,7 +15,7 @@ > You should have received a copy of the GNU General Public License > along with this program. If not, see .= */ >=20 > -#include "tdesc.h" > +#include "common/tdesc.h" > #include >=20 > target_desc *i386_create_target_description (uint64_t xcr0, bool is_linu= x); > diff --git a/gdb/arch/i386.c b/gdb/arch/i386.c > index d3e1eb90e0f578cd3978620b2f1eda37229f728b..2b7c178984fa608b7ba6f9006= 0e1382f3c43e548 100644 > --- a/gdb/arch/i386.c > +++ b/gdb/arch/i386.c > @@ -16,7 +16,7 @@ > along with this program. If not, see .= */ >=20 > #include "i386.h" > -#include "tdesc.h" > +#include "common/tdesc.h" > #include "x86-xstate.h" > #include >=20 > diff --git a/gdb/arch/tdesc.h b/gdb/common/tdesc.h > similarity index 100% > rename from gdb/arch/tdesc.h > rename to gdb/common/tdesc.h > diff --git a/gdb/arch/tic6x.c b/gdb/arch/tic6x.c > index 9fc36cd4ca4cb89be1e7c909ee14a51ebb6d6b4a..6b57baa3241ae6cef2656f772= 7aa54115e9f9aa2 100644 > --- a/gdb/arch/tic6x.c > +++ b/gdb/arch/tic6x.c > @@ -15,7 +15,7 @@ > You should have received a copy of the GNU General Public License > along with this program. If not, see .= */ >=20 > -#include "tdesc.h" > +#include "common/tdesc.h" > #include "tic6x.h" > #include "common/common-defs.h" >=20 > diff --git a/gdb/features/aarch64-core.c b/gdb/features/aarch64-core.c > index 3707b7e05560507328077684215218ccbad63fee..db10c4aa068d9fa1fb089f15d= fc0fc3827a3a286 100644 > --- a/gdb/features/aarch64-core.c > +++ b/gdb/features/aarch64-core.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: aarch64-core.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_aarch64_core (struct target_desc *result, long regnum) > diff --git a/gdb/features/aarch64-fpu.c b/gdb/features/aarch64-fpu.c > index cac3981f7dd918e051826272eb69da8e7ac5269a..0c40c4cef22e42be5ee27bf20= 5ee60f5dbbdbf0f 100644 > --- a/gdb/features/aarch64-fpu.c > +++ b/gdb/features/aarch64-fpu.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: aarch64-fpu.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_aarch64_fpu (struct target_desc *result, long regnum) > diff --git a/gdb/features/i386/32bit-avx.c b/gdb/features/i386/32bit-avx.c > index 8a0c35655d9a9efa19ea04053b05b0e6ba0035e8..6e2cfdbdcbcc024fc81db5228= 42e8377cb2d50c5 100644 > --- a/gdb/features/i386/32bit-avx.c > +++ b/gdb/features/i386/32bit-avx.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: 32bit-avx.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_i386_32bit_avx (struct target_desc *result, long regnum) > diff --git a/gdb/features/i386/32bit-avx512.c b/gdb/features/i386/32bit-a= vx512.c > index 39c7e9771a94d06f05ebb72cb108ef1e569cbaa7..863c119ac40d25270729ae849= b4bbb53977b4e15 100644 > --- a/gdb/features/i386/32bit-avx512.c > +++ b/gdb/features/i386/32bit-avx512.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: 32bit-avx512.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_i386_32bit_avx512 (struct target_desc *result, long regnu= m) > diff --git a/gdb/features/i386/32bit-core.c b/gdb/features/i386/32bit-cor= e.c > index 294e86d81eecbd488adb45e29644290ce5fd313e..f6de737074202f37e57861ca3= f1609d1e9ecc86a 100644 > --- a/gdb/features/i386/32bit-core.c > +++ b/gdb/features/i386/32bit-core.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: 32bit-core.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_i386_32bit_core (struct target_desc *result, long regnum) > diff --git a/gdb/features/i386/32bit-linux.c b/gdb/features/i386/32bit-li= nux.c > index 136e3d71b41a6e5af7f115fb94937a659a48185a..af476da194e2cb0c4a88030f6= 480917130323de0 100644 > --- a/gdb/features/i386/32bit-linux.c > +++ b/gdb/features/i386/32bit-linux.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: 32bit-linux.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_i386_32bit_linux (struct target_desc *result, long regnum) > diff --git a/gdb/features/i386/32bit-mpx.c b/gdb/features/i386/32bit-mpx.c > index 8f1be3a60f03243bd5decde1fcb4ba3a94773159..84101746b50e3a55ea6e76a9c= 1b6549a75de402f 100644 > --- a/gdb/features/i386/32bit-mpx.c > +++ b/gdb/features/i386/32bit-mpx.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: 32bit-mpx.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_i386_32bit_mpx (struct target_desc *result, long regnum) > diff --git a/gdb/features/i386/32bit-pkeys.c b/gdb/features/i386/32bit-pk= eys.c > index 4ad7649915f21a0f62c9162a2fc425907c692ea4..272751f5781e81373e090d18e= 8bd133529d3570e 100644 > --- a/gdb/features/i386/32bit-pkeys.c > +++ b/gdb/features/i386/32bit-pkeys.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: 32bit-pkeys.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_i386_32bit_pkeys (struct target_desc *result, long regnum) > diff --git a/gdb/features/i386/32bit-sse.c b/gdb/features/i386/32bit-sse.c > index cf48960353881519789986fd7f1c46b8802d9a11..78fc02b863c7d1107d8360c4a= 4707a8df2ea4642 100644 > --- a/gdb/features/i386/32bit-sse.c > +++ b/gdb/features/i386/32bit-sse.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: 32bit-sse.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_i386_32bit_sse (struct target_desc *result, long regnum) > diff --git a/gdb/features/i386/64bit-avx.c b/gdb/features/i386/64bit-avx.c > index d8e391423bc2f52fe491972d20aabea4ea26f21a..5f11035af3f208b0a0bdfee36= 802e4cc7b29ccf9 100644 > --- a/gdb/features/i386/64bit-avx.c > +++ b/gdb/features/i386/64bit-avx.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: 64bit-avx.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_i386_64bit_avx (struct target_desc *result, long regnum) > diff --git a/gdb/features/i386/64bit-avx512.c b/gdb/features/i386/64bit-a= vx512.c > index e103e43464c7337f6556fb6035d953a3881f3e98..733910025bab29345124e4c00= 6136ffa19e98339 100644 > --- a/gdb/features/i386/64bit-avx512.c > +++ b/gdb/features/i386/64bit-avx512.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: 64bit-avx512.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_i386_64bit_avx512 (struct target_desc *result, long regnu= m) > diff --git a/gdb/features/i386/64bit-core.c b/gdb/features/i386/64bit-cor= e.c > index 9e39ee42d9a31d68efbf838c47ae43b12a797e3f..efc7016380851ab21686cd792= 0b57666313a1bab 100644 > --- a/gdb/features/i386/64bit-core.c > +++ b/gdb/features/i386/64bit-core.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: 64bit-core.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_i386_64bit_core (struct target_desc *result, long regnum) > diff --git a/gdb/features/i386/64bit-linux.c b/gdb/features/i386/64bit-li= nux.c > index 570910b9cc0f6ebf88f83dd4e73e54a38cf11636..c9c56f193cf7bee14b3c1b2b4= 733cb037196c5c6 100644 > --- a/gdb/features/i386/64bit-linux.c > +++ b/gdb/features/i386/64bit-linux.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: 64bit-linux.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_i386_64bit_linux (struct target_desc *result, long regnum) > diff --git a/gdb/features/i386/64bit-mpx.c b/gdb/features/i386/64bit-mpx.c > index 725e76a0dd99cc79e1ac10dd62cd4bcca3cf682d..d923813d699d331c8669e1f44= 93706bb0851b4ba 100644 > --- a/gdb/features/i386/64bit-mpx.c > +++ b/gdb/features/i386/64bit-mpx.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: 64bit-mpx.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_i386_64bit_mpx (struct target_desc *result, long regnum) > diff --git a/gdb/features/i386/64bit-pkeys.c b/gdb/features/i386/64bit-pk= eys.c > index 9d974c3772d93b44d5ae92ccc0752d6be9c21f4d..f1cbce0ce7fbf4af2a285dae9= cbb1db2c569c3a5 100644 > --- a/gdb/features/i386/64bit-pkeys.c > +++ b/gdb/features/i386/64bit-pkeys.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: 64bit-pkeys.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_i386_64bit_pkeys (struct target_desc *result, long regnum) > diff --git a/gdb/features/i386/64bit-segments.c b/gdb/features/i386/64bit= -segments.c > index 7a1fbf53f35eb0106c2c3c4c32b1f7f0aa276b6a..900471fc48c9361d6c453c92c= 1bc67a93409941d 100644 > --- a/gdb/features/i386/64bit-segments.c > +++ b/gdb/features/i386/64bit-segments.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: 64bit-segments.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_i386_64bit_segments (struct target_desc *result, long reg= num) > diff --git a/gdb/features/i386/64bit-sse.c b/gdb/features/i386/64bit-sse.c > index 2859217f45860d52c76650fa5ad17eb9611ab8c8..294360197f588ddfc595e18d6= 386a53f108b60e6 100644 > --- a/gdb/features/i386/64bit-sse.c > +++ b/gdb/features/i386/64bit-sse.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: 64bit-sse.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_i386_64bit_sse (struct target_desc *result, long regnum) > diff --git a/gdb/features/i386/x32-core.c b/gdb/features/i386/x32-core.c > index c268e11bea9e81563fe586299ccea4bde9c7497f..9b0bcc5a7ef0df5835a1a95db= d9a50688cf8cd79 100644 > --- a/gdb/features/i386/x32-core.c > +++ b/gdb/features/i386/x32-core.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: x32-core.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_i386_x32_core (struct target_desc *result, long regnum) > diff --git a/gdb/features/tic6x-c6xp.c b/gdb/features/tic6x-c6xp.c > index 5b0f566ee4c5687c1a8de4e08ab2828ba5242505..261a562d903b7c1a203cd9a66= f2f5fca8ac8bec7 100644 > --- a/gdb/features/tic6x-c6xp.c > +++ b/gdb/features/tic6x-c6xp.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: tic6x-c6xp.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_tic6x_c6xp (struct target_desc *result, long regnum) > diff --git a/gdb/features/tic6x-core.c b/gdb/features/tic6x-core.c > index 823d4c1da107786b5a983afb04a2fa88b69d3684..65f73ec97df8fef36a265e0a0= c2891dc6aedb2aa 100644 > --- a/gdb/features/tic6x-core.c > +++ b/gdb/features/tic6x-core.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: tic6x-core.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_tic6x_core (struct target_desc *result, long regnum) > diff --git a/gdb/features/tic6x-gp.c b/gdb/features/tic6x-gp.c > index df0d0e37fc2c085e8bddedff2ab00cf26ddb2c73..b62458837947247405564d055= 925acd424c6be03 100644 > --- a/gdb/features/tic6x-gp.c > +++ b/gdb/features/tic6x-gp.c > @@ -1,7 +1,7 @@ > /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: > Original: tic6x-gp.xml */ >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > static int > create_feature_tic6x_gp (struct target_desc *result, long regnum) > diff --git a/gdb/gdbserver/tdesc.h b/gdb/gdbserver/tdesc.h > index 783500598b5599e51f8e768a876fdfe499cdf0ef..d21574ca73e5042d560adad0e= 3839e89ee2c67ab 100644 > --- a/gdb/gdbserver/tdesc.h > +++ b/gdb/gdbserver/tdesc.h > @@ -19,7 +19,7 @@ > #ifndef TDESC_H > #define TDESC_H >=20 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > #include "regdef.h" > #include > diff --git a/gdb/gdbserver/tdesc.c b/gdb/gdbserver/tdesc.c > index c39b5e7d27e879c5d3fb49b6e04d1eb6128f8eef..00a5e8dc4d6fe3c0809194c04= 902f96056622c82 100644 > --- a/gdb/gdbserver/tdesc.c > +++ b/gdb/gdbserver/tdesc.c > @@ -66,7 +66,7 @@ current_target_desc (void) > return current_process ()->tdesc; > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > void > set_tdesc_architecture (struct target_desc *target_desc, > @@ -75,7 +75,7 @@ set_tdesc_architecture (struct target_desc *target_desc, > target_desc->arch =3D xstrdup (name); > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > void > set_tdesc_osabi (struct target_desc *target_desc, const char *name) > @@ -132,7 +132,7 @@ tdesc_get_features_xml (target_desc *tdesc) > struct tdesc_type > {}; >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > struct tdesc_feature * > tdesc_create_feature (struct target_desc *tdesc, const char *name, > @@ -144,7 +144,7 @@ tdesc_create_feature (struct target_desc *tdesc, cons= t char *name, > return tdesc; > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > tdesc_type_with_fields * > tdesc_create_flags (struct tdesc_feature *feature, const char *name, > @@ -153,14 +153,14 @@ tdesc_create_flags (struct tdesc_feature *feature, = const char *name, > return NULL; > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > void > tdesc_add_flag (tdesc_type_with_fields *type, int start, > const char *flag_name) > {} >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > struct tdesc_type * > tdesc_named_type (const struct tdesc_feature *feature, const char *id) > @@ -168,7 +168,7 @@ tdesc_named_type (const struct tdesc_feature *feature= , const char *id) > return NULL; > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > tdesc_type_with_fields * > tdesc_create_union (struct tdesc_feature *feature, const char *id) > @@ -176,7 +176,7 @@ tdesc_create_union (struct tdesc_feature *feature, co= nst char *id) > return NULL; > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > tdesc_type_with_fields * > tdesc_create_struct (struct tdesc_feature *feature, const char *id) > @@ -184,7 +184,7 @@ tdesc_create_struct (struct tdesc_feature *feature, c= onst char *id) > return NULL; > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > void > tdesc_create_reg (struct tdesc_feature *feature, const char *name, > @@ -212,7 +212,7 @@ tdesc_create_reg (struct tdesc_feature *feature, cons= t char *name, > tdesc->reg_defs.push_back (reg); > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > struct tdesc_type * > tdesc_create_vector (struct tdesc_feature *feature, const char *name, > @@ -226,14 +226,14 @@ tdesc_add_bitfield (tdesc_type_with_fields *type, c= onst char *field_name, > int start, int end) > {} >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > void > tdesc_add_field (tdesc_type_with_fields *type, const char *field_name, > struct tdesc_type *field_type) > {} >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > void > tdesc_set_struct_size (tdesc_type_with_fields *type, int size) > diff --git a/gdb/target-descriptions.h b/gdb/target-descriptions.h > index 759fd34a0fe31f84a8531c799e5a3556e768c604..fa554fddf62fc6fb9e658c4a3= 18f2fce213615c1 100644 > --- a/gdb/target-descriptions.h > +++ b/gdb/target-descriptions.h > @@ -21,7 +21,7 @@ >=20 > #ifndef TARGET_DESCRIPTIONS_H > #define TARGET_DESCRIPTIONS_H 1 > -#include "arch/tdesc.h" > +#include "common/tdesc.h" >=20 > struct tdesc_arch_data; > struct target_ops; > diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c > index ce4cf76899cccb1c009bc556aeb6a74f0913edbe..5d34e29a867f8d39cd0451eb4= 8cbf39614c9acba 100644 > --- a/gdb/target-descriptions.c > +++ b/gdb/target-descriptions.c > @@ -1025,7 +1025,7 @@ tdesc_predefined_type (enum tdesc_type_kind kind) > gdb_assert_not_reached ("bad predefined tdesc type"); > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > struct tdesc_type * > tdesc_named_type (const struct tdesc_feature *feature, const char *id) > @@ -1476,7 +1476,7 @@ tdesc_use_registers (struct gdbarch *gdbarch, > } >=20 >=20 >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > void > tdesc_create_reg (struct tdesc_feature *feature, const char *name, > @@ -1489,7 +1489,7 @@ tdesc_create_reg (struct tdesc_feature *feature, co= nst char *name, > feature->registers.emplace_back (reg); > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > struct tdesc_type * > tdesc_create_vector (struct tdesc_feature *feature, const char *name, > @@ -1501,7 +1501,7 @@ tdesc_create_vector (struct tdesc_feature *feature,= const char *name, > return type; > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > tdesc_type_with_fields * > tdesc_create_struct (struct tdesc_feature *feature, const char *name) > @@ -1513,7 +1513,7 @@ tdesc_create_struct (struct tdesc_feature *feature,= const char *name) > return type; > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > void > tdesc_set_struct_size (tdesc_type_with_fields *type, int size) > @@ -1523,7 +1523,7 @@ tdesc_set_struct_size (tdesc_type_with_fields *type= , int size) > type->size =3D size; > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > tdesc_type_with_fields * > tdesc_create_union (struct tdesc_feature *feature, const char *name) > @@ -1535,7 +1535,7 @@ tdesc_create_union (struct tdesc_feature *feature, = const char *name) > return type; > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > tdesc_type_with_fields * > tdesc_create_flags (struct tdesc_feature *feature, const char *name, > @@ -1563,7 +1563,7 @@ tdesc_create_enum (struct tdesc_feature *feature, c= onst char *name, > return type; > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > void > tdesc_add_field (tdesc_type_with_fields *type, const char *field_name, > @@ -1588,7 +1588,7 @@ tdesc_add_typed_bitfield (tdesc_type_with_fields *t= ype, const char *field_name, > type->fields.emplace_back (field_name, field_type, start, end); > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > void > tdesc_add_bitfield (tdesc_type_with_fields *type, const char *field_name, > @@ -1606,7 +1606,7 @@ tdesc_add_bitfield (tdesc_type_with_fields *type, c= onst char *field_name, > tdesc_add_typed_bitfield (type, field_name, start, end, field_type); > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > void > tdesc_add_flag (tdesc_type_with_fields *type, int start, > @@ -1630,7 +1630,7 @@ tdesc_add_enum_value (tdesc_type_with_fields *type,= int value, > value, -1); > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > struct tdesc_feature * > tdesc_create_feature (struct target_desc *tdesc, const char *name, > @@ -1696,7 +1696,7 @@ set_tdesc_property (struct target_desc *target_desc, > target_desc->properties.emplace_back (key, value); > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > void > set_tdesc_architecture (struct target_desc *target_desc, > @@ -1712,7 +1712,7 @@ set_tdesc_architecture (struct target_desc *target_= desc, > target_desc->arch =3D arch; > } >=20 > -/* See arch/tdesc.h. */ > +/* See common/tdesc.h. */ >=20 > void > set_tdesc_osabi (struct target_desc *target_desc, const char *name) > @@ -2077,7 +2077,7 @@ public: > printf_unfiltered (" Original: %s */\n\n", > lbasename (m_filename_after_features.c_str ())); >=20 > - printf_unfiltered ("#include \"arch/tdesc.h\"\n"); > + printf_unfiltered ("#include \"common/tdesc.h\"\n"); > printf_unfiltered ("\n"); > } >=20