summaryrefslogtreecommitdiff
path: root/gdb/gdbarch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbarch.sh')
-rwxr-xr-xgdb/gdbarch.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
index 964e16f25ca..3b0387efb13 100755
--- a/gdb/gdbarch.sh
+++ b/gdb/gdbarch.sh
@@ -1129,6 +1129,7 @@ cat <<EOF
#include "floatformat.h"
#include "gdb_assert.h"
+#include "gdb-events.h"
/* Static function declarations */
@@ -2066,6 +2067,7 @@ gdbarch_update_p (struct gdbarch_info info)
new_gdbarch->bfd_arch_info->printable_name);
current_gdbarch = new_gdbarch;
swapin_gdbarch_swap (new_gdbarch);
+ architecture_changed_event ();
return 1;
}
}
@@ -2099,7 +2101,8 @@ gdbarch_update_p (struct gdbarch_info info)
registered an interest in this architecture. CURRENT_GDBARCH
must be updated before these modules are called. */
init_gdbarch_data (new_gdbarch);
-
+ architecture_changed_event ();
+
if (gdbarch_debug)
gdbarch_dump (current_gdbarch, gdb_stdlog);