mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-03 04:01:22 +08:00
* doc/observer.texi (executable_changed): New observer.
* symtab.c: Include "observer.h". (find_main_name): New function. (main_name): If name_of_main is unset, then compute it using find_main_name. (symtab_observer_executable_changed): New function. (_initialize_symtab): Attach executable_changed observer. * exec.c: Include "observer.h". (exec_file_attach): Emit executable_changed notification. * symfile.c: Include "observer.h". (reread_symbols): Send an executable_changed if appropriate. * Makefile.in (exec.o): Add dependency on observer.h. (symfile.o): Likewise. (symtab.o): Likewise.
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user