From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86067 invoked by alias); 21 Jun 2017 10:09:46 -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 86054 invoked by uid 89); 21 Jun 2017 10:09:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*Ad:D*oracle.com, Hx-languages-length:994, H*r:sk:static. X-HELO: mail-it0-f52.google.com Received: from mail-it0-f52.google.com (HELO mail-it0-f52.google.com) (209.85.214.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 21 Jun 2017 10:09:43 +0000 Received: by mail-it0-f52.google.com with SMTP id g184so22188799ita.0 for ; Wed, 21 Jun 2017 03:09:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=ICY2yUCQ4yS7Jm/8KN2b0lmcWfpKE6MIE8Nr4C0b72g=; b=U2MTHOW2aQE+CEDQlEbS5CFi5DU8lwDmcTJclvGUFaiJUw9/x3xrhlqMFAod+cXVr0 U1P3BgvRZ2NiOf2sjrwktXPqR3peIBoYvccemokTdyfQRboaij6Lkn2Ybp/AbCrjJnCW U7R05QkSOHZr6m7wE87vunYXfF2jHprlZrLYmAQRUCVyDOfJFTXnnTxR8kFkp1vLiDSf PNiKYCMLmVxMC0/hfEPNk5U3D2EazskpIVl+ssygJPcr0a1rCLq2X6J5V9asei7B8vTM dUrFru+RKaW7pF7HNiJWb2IJg/FVElUZYpcMaD97gBLudZ2B+sSk8LfDsnmKRtQVMA3i JyiQ== X-Gm-Message-State: AKS2vOz4APBVvDMFHIMjVZaqXg1zb25sGWfMkLJ5y1pshSbRZcTzBcLl iDUnoW2md7KYF3fh X-Received: by 10.36.43.146 with SMTP id h140mr7653271ita.7.1498039782339; Wed, 21 Jun 2017 03:09:42 -0700 (PDT) Received: from E107787-LIN (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id l130sm969300iol.49.2017.06.21.03.09.41 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 21 Jun 2017 03:09:41 -0700 (PDT) From: Yao Qi To: gdb-patches@sourceware.org Cc: weimin.pan@oracle.com Subject: File name convention ARCH-OSABI-tdep.c Date: Wed, 21 Jun 2017 10:09:00 -0000 Message-ID: <868tklhct8.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00586.txt.bz2 Hi, I want to extend the *-tdep.c file name convention. The current convention is ARCH-OSABI-tdep.c, and I want to extend it to ARCH-OSABI-tdep-FUNC.c, in which FUNC is about a certain functionality or feature about this target. The sparc64 adi patch (https://sourceware.org/ml/gdb-patches/2017-06/msg00472.html) adds a new file sparc64-adi-tdep.c which should be merged to sparc64-tdep.c according to the current naming convention. However, I think it is good to put different things in different files. So with the new convention proposed here, the new file can be sparc64-tdep-adi.c. Secondly, some *-tdep.c files are already quite large, arm-tdep.c is of 399434 bytes, 13318 lines. It is the 5th largest file. arm-tdep.c includes many things which are not related to each, like displaced stepping and process record. I am thinking that we should allow people moving them out of *-tdep.c to *-tdep-displaced.c and *-tdep-precord.c. --=20 Yao (=E9=BD=90=E5=B0=A7)