[PATCH 1/3] gdb: add inferior_target_stack_changed observer, use it to clear auxv cache

Tom Tromey tom@tromey.com
Wed Nov 30 15:44:08 GMT 2022


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

Simon> Add an inferior_target_stack_changed observable, and attach
Simon> invalidate_auxv_cache_inf to it.  Notify this observable in the
Simon> push_target and unpush_target methods of inferior.

This looks good to me, thanks.

It seems like overall it would be better to have the auxv cache just be
some member of 'inferior'.  Then these indirections and observers
wouldn't be needed -- the inferior could just manage it directly.

Tom


More information about the Gdb-patches mailing list