python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate.
authorDoug Evans <dje@google.com>
Mon, 7 Nov 2016 21:23:10 +0000 (13:23 -0800)
committerDoug Evans <dje@google.com>
Mon, 7 Nov 2016 21:23:10 +0000 (13:23 -0800)
gdb/ChangeLog:

* python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate.

gdb/ChangeLog
gdb/python/py-unwind.c

index da415bc156755d7f3acb58ce338675fde5f1c780..dd9f8cb383ce82e27443ad60047a9941e7d5cfd8 100644 (file)
@@ -1,3 +1,7 @@
+2016-11-07  Doug Evans  <dje@google.com>
+
+       * python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate.
+
 2016-11-07  Doug Evans  <dje@google.com>
 
        * configure.tgt (x86_64-*-elf*): Remove i386bsd-tdep.o.
index cc685aeff3029212aa825cb30d3acde578288170..92ce13820823ec2b8640f4471a0211ca65d299db 100644 (file)
@@ -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);