This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [PATCH] gdbserver: Add .dir-locals.el file
- From: "Aktemur, Tankut Baris" <tankut dot baris dot aktemur at intel dot com>
- To: Andrew Burgess <andrew dot burgess at embecosm dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 2 Mar 2020 10:19:28 +0000
- Subject: RE: [PATCH] gdbserver: Add .dir-locals.el file
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q/e1fpwwLbnth1FBxm89DgaP8ofP+IIRgYDxPmRQgTI=; b=MZ4X5kFo57At/q18QCtYYDU/GHT16cdLodvyx454MSjyPnwfyeDidEyh3BNw6LJJRPiBYsikTfuhdCMy6T9JEvYwHOErYed7HSCTyBXLpTFz20bIAoDk8123cmu9kXuEiTc2Q/ga1Asx9UaRX+xEjrNVb4yjEc6aE42jeZHDr50EdtlSMH6eJ/Er4Sltw4YY3qMSuhfxEic7+IPpan8BP+JEe9uBlFFEpu/u63cFfgMeiMNF5doi4KeOMIPeozqajDyUuTuyAZ2s4cBDFxBDP/NN6l/sAAmAiNJ5aQQ2Z272bLPrz4HttnfpkYk2OChF+cJ38n188WSfn9BWqOMWhg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OILP0bWllZAynrnQjoDary5HXtqwo0QtbpX9q6H8lSGH78+4K1xBNS69+CU9s5Khev2DT66B6UDlXmSz0XatmyzSmUELUHr41Mb4Ryu88fthO88f5QCRqfzjUoBjqiFIUfxZtHNM3qtdQbsN3gLSVvbC5V/Z1UIYF33qYOP7WuLlRTlPl3rVKxYJLLGD7fvuBbX7KbK/swt+RELOPcadhle55m+S2S8QixA2equJb0r/WhEYXIjdjkJM6cQu4QSoU9fY15SxjyU5oCD5wFx1eEdwMQitBL7o/hb5x91S7km0029IsUKplmY408ygeUnvWHxv9f3WMKbRqUX5+KXnqQ==
- References: <20200302095303.4474-1-andrew.burgess@embecosm.com>
On Monday, March 2, 2020 10:53 AM, Andrew Burgess wrote:
> 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.
... and I think they year needs to be just '2020'.
Thanks.
-Baris
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Gary Kershaw
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928