This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/2 v2] Add unit test to aarch64 prologue analyzer
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 (齐尧)