This is the mail archive of the gdb-patches@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]

Re: [PATCH 0/4] Remove some uses of iterate_over_inferiors


>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:

Simon> Today, it's very easy to iterate over inferiors using a range-based for
Simon> loop combined with all_inferiors.  I think it gives simpler and easier
Simon> to understand code than iterate_over_inferiors, which uses a void
Simon> pointer to pass data from the caller.  I noticed that there were very
Simon> few uses of iterate_over_inferiors left, so I think we could convert
Simon> them to range-based for loop and get rid of it.

I sent some patches like this a while back, but never got around to
finishing the series, so I never checked them in.

https://sourceware.org/ml/gdb-patches/2019-09/msg00381.html

These all look fine to me and I think you should push them.

You wrote one patch I didn't (and I think you did more in mi-main.c
too?), and I wrote one you didn't; I'll resurrect that one and push it
once yours are in:

https://sourceware.org/ml/gdb-patches/2019-09/msg00383.html

Tom


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