From patchwork Mon Mar 2 09:53:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Burgess X-Patchwork-Id: 38365 Received: (qmail 11632 invoked by alias); 2 Mar 2020 09:53:13 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 11624 invoked by uid 89); 2 Mar 2020 09:53:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=H*MI:andrew, H*m:andrew X-HELO: mail-wr1-f52.google.com Received: from mail-wr1-f52.google.com (HELO mail-wr1-f52.google.com) (209.85.221.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 02 Mar 2020 09:53:11 +0000 Received: by mail-wr1-f52.google.com with SMTP id l5so11687456wrx.4 for ; Mon, 02 Mar 2020 01:53:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id; bh=jaZ8Rwum0zkN5yt1C5ZeOS/4u6A6O1tg4NNsxX/caKU=; b=GEWE/pfOZ12+nkMjYk7kI1bUn2vXC0Ri1LrjnfTUw7Jon34n45mp2FDFf+HoLEfg/t ++gO12o7XXpd4MLZHFjyUhRBROKB7esqiN+JYpOBjhoRNY2YtQHM0QIg9czyC6gV1n9p OPVua12/pwQQvGH4b8a1QzUMJBv3aVoaBf8nyGMDFk539eIfCggExVFWu0cbxUp8hzBx nkX1HgQY38l/JpNKTEWlalGp0yA89Ax6h+8D2WGUkjQ2kyRYTi+KJahsYNtjB0Db5SB3 Tjc0QCwd9jL71ObU79Ms2Oo7kixS6mtK6oJ/RvnR/GMfLQywTu0nry4W1n1dbSoztnvR Ynww== Return-Path: Received: from localhost ([212.69.42.53]) by smtp.gmail.com with ESMTPSA id i12sm12893746wrw.64.2020.03.02.01.53.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Mar 2020 01:53:08 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH] gdbserver: Add .dir-locals.el file Date: Mon, 2 Mar 2020 09:53:03 +0000 Message-Id: <20200302095303.4474-1-andrew.burgess@embecosm.com> X-IsSubscribed: yes Add a .dir-locals.el file into the gdbserver directory so that we get the GNU style when editing these files in Emacs. I copied this file over from the gdb/ directory and the only change I made was to remove (mode . c++) from the c-mode settings. The reason for this is that all C++ files in the gdbserver/ directory now have the .cc suffix, and we don't (currently) have any .c files in there. I assume that if did add a .c file in the future, it really would be C, not C++, so forcing c++-mode seems like the wrong thing to do. The copyright date in the new file is left as for gdb/.dir-locals.el, as the new file is an exact copy with one line removed. gdbserver/ChangeLog: * .dir-locals.el: New file. --- gdbserver/.dir-locals.el | 36 ++++++++++++++++++++++++++++++++++++ gdbserver/ChangeLog | 4 ++++ 2 files changed, 40 insertions(+) create mode 100644 gdbserver/.dir-locals.el diff --git a/gdbserver/.dir-locals.el b/gdbserver/.dir-locals.el new file mode 100644 index 00000000000..28a6df0de07 --- /dev/null +++ b/gdbserver/.dir-locals.el @@ -0,0 +1,36 @@ +;; Emacs settings. +;; Copyright (C) 2012-2020 Free Software Foundation, Inc. + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +( + (tcl-mode . ((tcl-indent-level . 4) + (tcl-continued-indent-level . 4) + (indent-tabs-mode . t))) + (nil . ((bug-reference-url-format . "http://sourceware.org/bugzilla/show_bug.cgi?id=%s"))) + (c-mode . ((c-file-style . "GNU") + (indent-tabs-mode . t) + (tab-width . 8) + (c-basic-offset . 2) + (eval . (c-set-offset 'innamespace 0)) + )) + (c++-mode . ((eval . (when (fboundp 'c-toggle-comment-style) + (c-toggle-comment-style 1))) + (indent-tabs-mode . t) + (tab-width . 8) + (c-file-style . "GNU") + (c-basic-offset . 2) + (eval . (c-set-offset 'innamespace 0)) + )) +)