aboutsummaryrefslogtreecommitdiff
path: root/gdb/machoread.c
diff options
context:
space:
mode:
authorXavier Roirand <roirand@adacore.com>2018-08-23 11:17:03 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2018-08-23 11:17:15 -0400
commit12a0d0f66172b9504e29000fa4f4e5c34109d6db (patch)
tree5961f0e5eff9470061f9c5fd17a009defa329e1e /gdb/machoread.c
parent2cd65cb935bcf1511c7e7bb77ce7bd46234300db (diff)
downloadgdb-12a0d0f66172b9504e29000fa4f4e5c34109d6db.zip
gdb-12a0d0f66172b9504e29000fa4f4e5c34109d6db.tar.gz
gdb-12a0d0f66172b9504e29000fa4f4e5c34109d6db.tar.bz2
Darwin: fix bad loop incrementation
When reading symbols from the vector of oso files on Mac OS X Darwin, a previous commit introduce a change in the loop and add an increment at each loop iteration whereas this incrementation is not needed since the increment or set of the loop control variable is already done in the loop. gdb/ChangeLog: * machoread.c (macho_symfile_read_all_oso): Remove uneeded incrementation. Change-Id: I3a5a6deb4e9d834ee7d4217a62d90c2ffb7241bc
Diffstat (limited to 'gdb/machoread.c')
-rw-r--r--gdb/machoread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/machoread.c b/gdb/machoread.c
index 0cbd209..3040fe7 100644
--- a/gdb/machoread.c
+++ b/gdb/machoread.c
@@ -615,7 +615,7 @@ macho_symfile_read_all_oso (std::vector<oso_el> *oso_vector_ptr,
std::sort (oso_vector_ptr->begin (), oso_vector_ptr->end (),
oso_el_compare_name);
- for (ix = 0; ix < oso_vector_ptr->size (); ++ix)
+ for (ix = 0; ix < oso_vector_ptr->size ();)
{
int pfx_len;