Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: nick clifton <nickc@redhat.com>
Cc: binutils@sourceware.org, Kevin Buettner <kevinb@redhat.com>,
	gdb-patches@sourceware.org
Subject: Re: [RFC] msp430 instruction decoder
Date: Thu, 23 May 2013 05:16:00 -0000	[thread overview]
Message-ID: <201305230116.28453.vapier@gentoo.org> (raw)
In-Reply-To: <519C9A46.4010302@redhat.com>

[-- Attachment #1: Type: Text/Plain, Size: 1618 bytes --]

On Wednesday 22 May 2013 06:13:26 nick clifton wrote:
> >> +typedef struct
> >> +{
> >> +  MSP430_Opcode_Decoded * msp430;
> > 
> > shouldn't the style be:
> > 	MSP430_Opcode_Decoded *msp430;
> > 
> > seems like general style guidelines are violated a lot in this file.  do
> > we normally ignore that in the opcodes/ tree ?
> 
> No, and I have revised the formatting in the patch files.  They do now
> conform to the GNU Coding Standard.  Note - the msp430-decode.opc file
> includes some comments that do not quite conform to the standard.  This
> is because these comments are directives to the opc2c program and need
> to remain in their current format.
> 
> Do you have any more concerns with this patch ?

style around MSP430_Opcode_Operand struct decl in the header needs a little 
tweaking

the .opc could do with a little tweaking:
 - space before () in the B define when calling GETBYTE
 - should OP and OPX have spaces after each comma in the arg list ?  seems to 
happen with a bunch of other macros too ...
 - OP and OPX should also not have a space before the final )
 - indentation after UNSUPPORTED and IMMU and IMMS should prob be tabs and not 
spaces
 - F_____ (and the two after it) have a tab after the #define rather than a 
space
 - in msp430_decode_opcode, are the multiple macro calls on the same line on 
purpose, or should those get fixed to be one per line ?  for example:
  ID (dopc_to_id (dopc)); ASX (sreg, as, srxt_bits); ADX (dreg, a, dsxt_bits); 
ABW (al_bit, b);

the heavy macro usage is understandable in these sorts of things and common
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2013-05-23  5:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-16 22:03 Kevin Buettner
2013-05-16 22:33 ` Kevin Buettner
2013-05-17 17:54 ` Mike Frysinger
2013-05-22 10:14   ` nick clifton
2013-05-23  5:16     ` Mike Frysinger [this message]
2013-05-23  5:48       ` DJ Delorie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201305230116.28453.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=binutils@sourceware.org \
    --cc=gdb-patches@sourceware.org \
    --cc=kevinb@redhat.com \
    --cc=nickc@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox