Skip to content

Commit 6354b65

Browse files
Xavier RoirandSimon Marchi
authored andcommitted
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
1 parent afd1472 commit 6354b65

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

gdb/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2018-08-23 Xavier Roirand <[email protected]>
2+
3+
* machoread.c (macho_symfile_read_all_oso): Remove uneeded
4+
incrementation.
5+
16
2018-08-21 Alan Hayward <[email protected]>
27

38
* arch/aarch64.h (aarch64_regnum): Update comment.

gdb/machoread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ macho_symfile_read_all_oso (std::vector<oso_el> *oso_vector_ptr,
616616
std::sort (oso_vector_ptr->begin (), oso_vector_ptr->end (),
617617
oso_el_compare_name);
618618

619-
for (ix = 0; ix < oso_vector_ptr->size (); ++ix)
619+
for (ix = 0; ix < oso_vector_ptr->size ();)
620620
{
621621
int pfx_len;
622622

0 commit comments

Comments
 (0)