aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.c
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2001-08-11 00:41:02 +0000
committerKeith Seitz <keiths@redhat.com>2001-08-11 00:41:02 +0000
commit67c2c32c6b30dd3690964884a46b39cc6ee27486 (patch)
treeff94c6dfcb0b0766f6bd0d86630c1e45261761be /gdb/gdbarch.c
parentc5745c877823a4c057c1f3a952a2e9fbce69354f (diff)
downloadgdb-67c2c32c6b30dd3690964884a46b39cc6ee27486.zip
gdb-67c2c32c6b30dd3690964884a46b39cc6ee27486.tar.gz
gdb-67c2c32c6b30dd3690964884a46b39cc6ee27486.tar.bz2
* gdb-events.sh: Add architecture_changed event.
* gdbarch.sh: Include gdb-event.h. (gdbarch_update_p): Notify UIs when architecture changes. * gdb-events.h: Regenerated. * gdb-events.c: Regenerated. * gdbarch.c: Regenerated.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r--gdb/gdbarch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index 40da7a4..be5cccf 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -61,6 +61,7 @@
#include "floatformat.h"
#include "gdb_assert.h"
+#include "gdb-events.h"
/* Static function declarations */
@@ -4733,6 +4734,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;
}
}
@@ -4766,7 +4768,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);