[PATCH 0/9] Convert breakpoint iteration macros to ranges

Tom Tromey tom@tromey.com
Thu May 27 18:14:45 GMT 2021


>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:

Simon> This all started with me finding that the update_global_location_list
Simon> function was hard to read, notably because the breakpoint iteration
Simon> macros are a bit hard to read (require multiple local variables and
Simon> pointers to pointers).  So this removes all breakpoint-related iteration
Simon> macros in favor of functions that return iterable ranges.

This all looks good to me.  I prefer external iteration like this when
possible, as I think it's easier to understand and write.  Thank you.

Tom


More information about the Gdb-patches mailing list