diff options
author | Doug Evans <dje@google.com> | 2016-11-07 13:23:10 -0800 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2016-11-07 13:23:10 -0800 |
commit | bc71081e53e3c0a52a28d5874e65a54194e2205f (patch) | |
tree | 34db9957110f5b259a5627b61ce5b6d078687685 /gdb/python/py-unwind.c | |
parent | a57160325ef479bd7181a4319126b1177c4a5cbb (diff) | |
download | binutils-bc71081e53e3c0a52a28d5874e65a54194e2205f.zip binutils-bc71081e53e3c0a52a28d5874e65a54194e2205f.tar.gz binutils-bc71081e53e3c0a52a28d5874e65a54194e2205f.tar.bz2 |
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.
Diffstat (limited to 'gdb/python/py-unwind.c')
-rw-r--r-- | gdb/python/py-unwind.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); |