* doc/observer.texi (executable_changed): New observer.
authorJoel Brobecker <brobecker@gnat.com>
Tue, 8 Mar 2005 04:34:45 +0000 (04:34 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 8 Mar 2005 04:34:45 +0000 (04:34 +0000)
commitea53e89f14887acd25d0538f6bfb0f3a632f3bae
tree0203bdba7a68a1d8838ce7c9263c1eec7cba71ae
parent9a6351f1d23c0b4c67f9600f678afdf942d7af96
    * 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.
gdb/ChangeLog
gdb/Makefile.in
gdb/doc/observer.texi
gdb/exec.c
gdb/symfile.c
gdb/symtab.c