[PATCHv3 4/7] gdb: remove the pop_all_targets (and friends) global functions

Tom Tromey tom@tromey.com
Fri Nov 18 17:29:57 GMT 2022


>>>>> "Andrew" == Andrew Burgess via Gdb-patches <gdb-patches@sourceware.org> writes:

Andrew> This commit removes the global functions pop_all_targets,
Andrew> pop_all_targets_above, and pop_all_targets_at_and_above, and makes
Andrew> them methods on the inferior class.

This seems like an improvement to me.

Andrew> +void inferior::unpush_target_and_assert (struct target_ops *target)

There should be a newline after 'void'; there's a few instances of this.

Tom


More information about the Gdb-patches mailing list