From: Doug Evans Date: Mon, 7 Nov 2016 21:23:10 +0000 (-0800) Subject: python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc71081e53e3c0a52a28d5874e65a54194e2205f;p=binutils-gdb.git python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate. gdb/ChangeLog: * python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index da415bc1567..dd9f8cb383c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2016-11-07 Doug Evans + + * python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate. + 2016-11-07 Doug Evans * configure.tgt (x86_64-*-elf*): Remove i386bsd-tdep.o. diff --git a/gdb/python/py-unwind.c b/gdb/python/py-unwind.c index cc685aeff30..92ce1382082 100644 --- a/gdb/python/py-unwind.c +++ b/gdb/python/py-unwind.c @@ -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);