From bc71081e53e3c0a52a28d5874e65a54194e2205f Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 7 Nov 2016 13:23:10 -0800 Subject: 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. --- gdb/python/py-unwind.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gdb/python/py-unwind.c') diff --git a/gdb/python/py-unwind.c b/gdb/python/py-unwind.c index cc685ae..92ce138 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); -- cgit v1.1