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.
This commit is contained in:
Doug Evans 2016-11-07 13:23:10 -08:00
parent a57160325e
commit bc71081e53
2 changed files with 5 additions and 3 deletions

View 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.

View 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);