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:17:03 +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=dk9f2Cx4uh67x/uB+HLuCtJ5Dze4Oktj9jO0ip2K2jA=; b=Wa21wud+FqN0/nYNd422XKrKFzMssr5JF319mJY4UvPzWptLwKsCOMKhu9UYbcSRLF5fOL0AiGhggvjyHmpDwakCBj6YfD99FOmDo6Xt2N9HvqABDp4emmL28TB/kps9DZ1SAH8FOpZxp7EPBzKdNrVlg08s9IqgLXnpwWfusGYfgmQcJSMqCrcv9JJLDhDowix7TK986xXIpIphlUigm8poWNDZ++VVxV5V84ePHnJlwT9gZUm4yzxnpreyPRNcY5kC5TYhGzlEkMXwq2XIOLuoYzSDxipIh7cy0io+yVptKPmxuOfZynPi71I538waklcBB6gRWsOHj0VnDM5zKQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KIcjgvlC8ekBak5Bqt7fZJRFLkTgZwzpc7VIGg3uBtArAfkXwuvnb4KQojpMzw9Vy/MVaO+U0+dzSMbZhqeDi9khTzcre2cQTPEHm0RjOAw2vJhCDIt+0yO2xkTXrFNc1op0H9TAohFXJl1iJya2gzMkK/2p2ezp3U6gXeGDe3gGqUG5n9crtbZqcjVl9zP/TNeTO2mn7aw/ZvcVqMO7qSwu80SMP5mIMk7RGR3/lRymiS/LKDTXBKpTtUVv8S/kJi/8EkfLuruolAtUvBevaxZcrMfHzG5sH42ezWmy1oWC0hu7MVApdicSZwL2WN0L6EpW2c9IPv5hT0qQkuVcsQ==
- 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.
Because the header files are still .h, Emacs opens them in C mode. Can a
mode specification be included to use C++ mode for .h files, please?
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