forked from Imagelibrary/binutils-gdb
gdb
* symfile.c (reread_symbols): Don't pass argument to observer. * exec.c (exec_file_attach): Don't pass argument to observer. * ada-lang.c (ada_executable_changed_observer): Remove argument. * symtab.c (symtab_observer_executable_changed): Remove argument. * observer.sh: Handle functions with no arguments. gdb/doc * observer.texi (GDB Observers): Remove obsolete comment. <executable_changed>: Remove argument.
This commit is contained in:
@@ -4325,7 +4325,7 @@ main_name (void)
|
||||
/* Handle ``executable_changed'' events for the symtab module. */
|
||||
|
||||
static void
|
||||
symtab_observer_executable_changed (void *unused)
|
||||
symtab_observer_executable_changed (void)
|
||||
{
|
||||
/* NAME_OF_MAIN may no longer be the same, so reset it for now. */
|
||||
set_main_name (NULL);
|
||||
|
||||
Reference in New Issue
Block a user