From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37857 invoked by alias); 1 Dec 2016 16:04:36 -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 37827 invoked by uid 89); 1 Dec 2016 16:04:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy= X-HELO: mail-wm0-f65.google.com Received: from mail-wm0-f65.google.com (HELO mail-wm0-f65.google.com) (74.125.82.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 01 Dec 2016 16:04:25 +0000 Received: by mail-wm0-f65.google.com with SMTP id a20so34992354wme.2 for ; Thu, 01 Dec 2016 08:04:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=cbY94xTuhy365Txnz377GjJqBeEEjeTuIq6V3DBQQ9g=; b=JQLDXR+FIoR1zBtI+bTUapbOF7UeDOREZqircghAuB+d0oA7g/PqBkecFiSQohKcJL 6HxFg7xVMDVaSlAnEH7NV5VkyQiDJD9ERMGhkdRdsv1Sq2AHZ0UGyKiHmFBE9PzpN/mj IOu9Yi+CmE4S8JikE0b+IXpWa3EnYZjfNQy997RezfG60RDNSpfK+hHdbQSQA3cQkkAy TG/CLkWKq/ETrSGJEYTgTs9DlMmkOVeznbUtUliBoR6W2eHd76uBkunMb4Ncl5drAkLQ io8RE2BLL3kaanPqKH/4ued/ccu2KX5AZrkw7pDrTKXuxPcEv7gFaveYr/3Nay+VlQUt 3KCw== X-Gm-Message-State: AKaTC03dn5J/hcsq2fitIdK1teUyO40u06nYlooPZ1JvrJgl8r3oKErAjtvvPKYdV5JtXA== X-Received: by 10.28.141.18 with SMTP id p18mr32540281wmd.31.1480608263335; Thu, 01 Dec 2016 08:04:23 -0800 (PST) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id ab10sm889205wjc.45.2016.12.01.08.04.21 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 01 Dec 2016 08:04:22 -0800 (PST) Date: Thu, 01 Dec 2016 16:04:00 -0000 From: Yao Qi To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 1/2 v2] Add unit test to aarch64 prologue analyzer Message-ID: <20161201160412.GC19289@E107787-LIN> References: <1480428758-2481-1-git-send-email-yao.qi@linaro.org> <1480591000-19457-1-git-send-email-yao.qi@linaro.org> <20161201152115.GB19289@E107787-LIN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20161201152115.GB19289@E107787-LIN> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2016-12/txt/msg00042.txt.bz2 On Thu, Dec 01, 2016 at 03:21:15PM +0000, Yao Qi wrote: > On Thu, Dec 01, 2016 at 12:57:45PM +0000, Pedro Alves wrote: > > On 12/01/2016 11:16 AM, Yao Qi wrote: > > > > > +#if GDB_SELF_TEST > > > + > > > +namespace selftests > > > +{ > > > + > > > + /* Instruction reader from manually cooked instruction sequences. */ > > > + > > > + class instruction_reader_test : public abstract_instruction_reader > > > + { > > > > This whole class should be indented at column 0. > > > > Hi Pedro, > That is how emacs indents my code (at column 2). Even I start emacs > with -q, it still indents that way. > I managed to get emacs indent at column 0 with the following changes in gdb/.dir-locals.el. --- a/gdb/.dir-locals.el +++ b/gdb/.dir-locals.el @@ -19,6 +19,12 @@ (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))) + (c-mode . ( + (c-file-style . "GNU") + (mode . c++) + (indent-tabs-mode . t) + (c-offsets-alist . ( + (innamespace . 0) + )) + )) ) -- Yao (齐尧)