From 67c2c32c6b30dd3690964884a46b39cc6ee27486 Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Sat, 11 Aug 2001 00:41:02 +0000 Subject: * 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. --- gdb/gdbarch.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gdb/gdbarch.c') 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); -- cgit v1.1