[patch] AVR Disasm

Nick Clifton nickc@redhat.com
Tue Nov 30 11:41:00 GMT 2004


Hi Svein,

> 2004-11-26  Svein E. Seldal  <Svein.Seldal@solidas.com>
> 
>  * avr-dis.c: Prettyprint. Added printing of symbol names in all
>  memory references

Approved - please apply - but....

1) Please could you fix up the formatting slightly:

> +   if (sym_op1)
> +     info->print_address_func(sym_addr1, info);

Space between function name and opening parenthesis.

> +   if (sym_op2)
> +     info->print_address_func(sym_addr2, info);

Likewise.

2) We are using ISO C90 formatting for binutils now, so you could, if 
you wanted to, remove the PARAMS macro when you make a change:

>   static int avr_operand PARAMS ((unsigned int, unsigned int,
> ! 				unsigned int, int, char *, char *, int, int *, bfd_vma *));

3) Since you are adding a new ability to the AVR disassembler it would 
be nice if you could add a test to the AVR specific part of the GAS 
testsuite to make sure that the feature continues to work.

Cheers
   Nick



More information about the Binutils mailing list