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: [RFC/PATCH] Clean up features/*.c unused vars


On 04/25/2012 12:39 PM, Sergio Durigan Junior wrote:
> @@ -1588,7 +1589,36 @@ maint_print_c_tdesc_cmd (char *args, int from_tty)
>    printf_unfiltered
>      ("  struct target_desc *result = allocate_target_description ();\n");
>    printf_unfiltered ("  struct tdesc_feature *feature;\n");
> -  printf_unfiltered ("  struct tdesc_type *field_type, *type;\n");
> +
> +  for (ix = 0;
> +       VEC_iterate (tdesc_feature_p, tdesc->features, ix, feature);
> +       ix++)

Better to give some comments here to explain why we do this.

b.t.w, tic6x-uclinux-gdb and gdbserver is still buildable with this
patch applied.  Thanks.

-- 
Yao (éå)


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