From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9018 invoked by alias); 6 Jan 2014 19:52:31 -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 9006 invoked by uid 89); 6 Jan 2014 19:52:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 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; Mon, 06 Jan 2014 19:52:30 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s06JqRPl005652 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 6 Jan 2014 14:52:27 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s06JqPwo029527; Mon, 6 Jan 2014 14:52:26 -0500 Message-ID: <52CB0979.5090809@redhat.com> Date: Mon, 06 Jan 2014 19:52:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Omair Javaid CC: gdb-patches@sourceware.org, patches@linaro.org Subject: Re: [PATCH v2 5/7] Adds support for thumb32 instructions recording References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2014-01/txt/msg00090.txt.bz2 On 01/03/2014 07:15 PM, Omair Javaid wrote: > + switch (op1) > + { > + /* Store byte instructions. */ > + case 4: > + case 0: > + record_buf_mem[0] = 1; > + break; "break;" should be aligned with the above statement, not with "case". Several instances of this. > + /* Swap first half of 32bit thumb instruction with second half. */ > + arm_record->arm_insn = (arm_record->arm_insn >> 16) | > + (arm_record->arm_insn << 16); '|' goes on the next line. But then you'd need to wrap the whole thing with an extra set of parens. Write instead: arm_record->arm_insn = (arm_record->arm_insn >> 16) | (arm_record->arm_insn << 16); > + > + insn_id = thumb2_record_decode_insn_handler (arm_record); > + > + if (insn_id != ARM_RECORD_SUCCESS) > + { > + arm_record_unsupported_insn(arm_record); Missing space before parens. > + ret = -1; > + } > } > else Otherwise looks fine to me. Thanks, -- Pedro Alves