From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106392 invoked by alias); 25 Oct 2018 12:06:30 -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 106377 invoked by uid 89); 25 Oct 2018 12:06:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:618 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 25 Oct 2018 12:06:28 +0000 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EF84DC04C279; Thu, 25 Oct 2018 12:06:26 +0000 (UTC) Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id E2BBA604D7; Thu, 25 Oct 2018 12:06:25 +0000 (UTC) Subject: Re: [PATCH 4/5] RISC-V: Add native linux support. To: Andrew Burgess , Andreas Schwab References: <20180808233908.8149-1-jimw@sifive.com> <20181025110946.GN2929@embecosm.com> Cc: Jim Wilson , gdb-patches@sourceware.org From: Pedro Alves Message-ID: Date: Thu, 25 Oct 2018 12:06:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181025110946.GN2929@embecosm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2018-10/txt/msg00571.txt.bz2 On 10/25/2018 12:09 PM, Andrew Burgess wrote: > > I removed the extra { ... } block in line with the coding standard > while editing this area. Actually, this applies here: > Any two or more lines in code should be wrapped in braces, even if they are comments, as they look like separate statements: > if (i) > { > /* Return success. */ > return 0; > } > > and not: > > if (i) > /* Return success. */ > return 0; From: https://sourceware.org/gdb/wiki/Internals%20GDB-C-Coding-Standards?highlight=%28coding%29%7C%28conventions%29#Whitespaces Thanks, Pedro Alves