gdb: add inferior parameter to architecture_changed observable
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 29 Sep 2023 18:24:36 +0000 (14:24 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 10 Oct 2023 14:44:35 +0000 (10:44 -0400)
commit97153a2bbfc59d33c1031526e63b06725862ba6b
treed83a7a8b917f7ba7f61afb300e129b70d38fbb9c
parent27b1f19f8f5cc46faba4bb2142547df074a82a29
gdb: add inferior parameter to architecture_changed observable

This is to make it explicit which inferior's architecture just changed,
and that the callbacks should not assume it is the current inferior.

Update the only caller, pyuw_on_new_gdbarch, to add the parameter,
although it doesn't use it currently.

Change-Id: Ieb7f21377e4252cc6e7b1ce2cc812cd1a1840e0e
Reviewed-By: John Baldwin <jhb@FreeBSD.org>
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/arch-utils.c
gdb/observable.h
gdb/python/py-unwind.c