This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC/PATCH] Clean up features/*.c unused vars
- From: Yao Qi <yao at codesourcery dot com>
- To: Sergio Durigan Junior <sergiodj at redhat dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Wed, 25 Apr 2012 16:24:35 +0800
- Subject: Re: [RFC/PATCH] Clean up features/*.c unused vars
- References: <m3wr54pgqe.fsf@redhat.com>
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 (éå)