This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, v17] Add support for setting disassembler-options in GDB for POWER, ARM and S390


On 02/24/2017 05:13 PM, Peter Bergner wrote:

>   if (valid_options->description != NULL)
>     {
>       ...
>     }
>   else
>     {
>       size_t i;
>       fprintf_filtered (file, "  ");
>       for (i = 0; valid_options->name[i] != NULL; i++)
>         {
>           fprintf_filtered (file, "%s", valid_options->name[i]);
>           if (valid_options->name[i+1] != NULL)
>             fprintf_filtered (file, ", ");
>           wrap_here ("  ");
>         }
>       fprintf_filtered (file, "\n");
>     }
> 

Yup, that looks fine.  (with spaces around the '+' operator).

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]