Re: [PATCH] gdb: add gdb_bfd_all_sections for range-based iteration

Simon Marchi
2020-08-24T21:31:01Z

On 2020-08-24 4:57 p.m., Tom Tromey wrote:
>>> I also did this kind of thing -- I have some patches to remove many uses
>>> of bfd_map_over_sections, though not all of them, since some seem hard
>>> to test.
>
> Simon> What approach did you take?
>
> Almost exactly identical to yours -- I named the adapter
> "gdb_bfd_sections". I can resurrect some of my patches after yours
> lands.
>
> Tom
>

I modeled the "gdb_bfd_all_sections" on "all_threads" and "all_inferiors". But honestly
the "all" sounds superfluous now that I re-read it.

I'll push the patch with "all" removed from the name.

Thanks!

Simon