* doc/observer.texi (executable_changed): New observer.
[binutils-gdb.git] / gdb / exec.c
index 875cee59dc130df43081e4423e41c896174fbd80..6bf524a78104ce8f31b09effab9c539eb61e3d13 100644 (file)
@@ -32,6 +32,7 @@
 #include "completer.h"
 #include "value.h"
 #include "exec.h"
+#include "observer.h"
 
 #include <fcntl.h>
 #include "readline/readline.h"
@@ -276,6 +277,7 @@ exec_file_attach (char *filename, int from_tty)
        (*deprecated_exec_file_display_hook) (filename);
     }
   bfd_cache_close_all ();
+  observer_notify_executable_changed (NULL);
 }
 
 /*  Process the first arg in ARGS as the new exec file.