This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bc71081e53e3c0a52a28d5874e65a54194e2205f

commit bc71081e53e3c0a52a28d5874e65a54194e2205f
Author: Doug Evans <dje@google.com>
Date:   Mon Nov 7 13:23:10 2016 -0800

    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:
---
 gdb/ChangeLog          | 4 ++++
 gdb/python/py-unwind.c | 4 +---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index da415bc..dd9f8cb 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 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.
 
 2016-11-04  Simon Marchi  <simon.marchi@polymtl.ca>
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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]