diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-09-29 14:24:36 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-10-10 10:44:35 -0400 |
commit | 97153a2bbfc59d33c1031526e63b06725862ba6b (patch) | |
tree | d83a7a8b917f7ba7f61afb300e129b70d38fbb9c /gdb/observable.h | |
parent | 27b1f19f8f5cc46faba4bb2142547df074a82a29 (diff) | |
download | fsf-binutils-gdb-97153a2bbfc59d33c1031526e63b06725862ba6b.zip fsf-binutils-gdb-97153a2bbfc59d33c1031526e63b06725862ba6b.tar.gz fsf-binutils-gdb-97153a2bbfc59d33c1031526e63b06725862ba6b.tar.bz2 |
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>
Diffstat (limited to 'gdb/observable.h')
-rw-r--r-- | gdb/observable.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/observable.h b/gdb/observable.h index 5a21440..acb05e9 100644 --- a/gdb/observable.h +++ b/gdb/observable.h @@ -153,9 +153,10 @@ extern observable<struct breakpoint */* b */> breakpoint_deleted; is the modified breakpoint. */ extern observable<struct breakpoint */* b */> breakpoint_modified; -/* The current architecture has changed. The argument NEWARCH is a +/* INF's architecture has changed. The argument NEWARCH is a pointer to the new architecture. */ -extern observable<struct gdbarch */* newarch */> architecture_changed; +extern observable<inferior */* inf */, struct gdbarch */* newarch */> + architecture_changed; /* The thread's ptid has changed. The OLD_PTID parameter specifies the old value, and NEW_PTID specifies the new value. */ |