python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate.
Commit Message
Hi.
I happened to notice this while reading the code.
2016-11-03 Doug Evans <dje@google.com>
* python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate.
Comments
On Thu, Nov 3, 2016 at 10:55 AM, Doug Evans <dje@google.com> wrote:
> Hi.
>
> I happened to notice this while reading the code.
>
> 2016-11-03 Doug Evans <dje@google.com>
>
> * python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate.
Committed.
@@ -212,9 +212,7 @@ unwind_infopy_str (PyObject *self)
get_user_print_options (&opts);
fprintf_unfiltered (strfile, "\nSaved registers: (");
- for (i = 0;
- i < VEC_iterate (saved_reg, unwind_info->saved_regs, i, reg);
- i++)
+ for (i = 0; VEC_iterate (saved_reg, unwind_info->saved_regs, i, reg);
i++)
{
struct value *value = value_object_to_value (reg->value);