if (gdbarch_debug)
gdbarch_dump (new_gdbarch, gdb_stdlog);
+ gdb::observers::new_architecture.notify (new_gdbarch);
+
return new_gdbarch;
}
gdb_assert (arch != nullptr);
gdb_assert (gdbarch_initialized_p (arch));
m_gdbarch = arch;
- gdb::observers::architecture_changed.notify (this, arch);
process_stratum_target *proc_target = this->process_target ();
if (proc_target != nullptr)
DEFINE_OBSERVABLE (breakpoint_created);
DEFINE_OBSERVABLE (breakpoint_deleted);
DEFINE_OBSERVABLE (breakpoint_modified);
-DEFINE_OBSERVABLE (architecture_changed);
+DEFINE_OBSERVABLE (new_architecture);
DEFINE_OBSERVABLE (thread_ptid_changed);
DEFINE_OBSERVABLE (inferior_added);
DEFINE_OBSERVABLE (inferior_appeared);
is the modified breakpoint. */
extern observable<struct breakpoint */* b */> breakpoint_modified;
-/* INF's architecture has changed. The argument NEWARCH is a
- pointer to the new architecture. */
-extern observable<inferior */* inf */, struct gdbarch */* newarch */>
- architecture_changed;
+/* GDB has instantiated a new architecture, NEWARCH is a pointer to the new
+ architecture. */
+extern observable<struct gdbarch */* newarch */> new_architecture;
/* The thread's ptid has changed. The OLD_PTID parameter specifies
the old value, and NEW_PTID specifies the new value. */
intermediary. */
static void
-pyuw_on_new_gdbarch (inferior *inf, gdbarch *newarch)
+pyuw_on_new_gdbarch (gdbarch *newarch)
{
struct pyuw_gdbarch_data_type *data = pyuw_gdbarch_data.get (newarch);
if (data == nullptr)
static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
gdbpy_initialize_unwind (void)
{
- gdb::observers::architecture_changed.attach (pyuw_on_new_gdbarch,
- "py-unwind");
+ gdb::observers::new_architecture.attach (pyuw_on_new_gdbarch, "py-unwind");
if (PyType_Ready (&pending_frame_object_type) < 0)
return -1;