New remove-symbol-file command.
authorNicolas Blanc <nicolas.blanc@intel.com>
Tue, 12 Mar 2013 10:10:18 +0000 (11:10 +0100)
committerNicolas Blanc <nicolas.blanc@intel.com>
Tue, 29 Oct 2013 09:56:07 +0000 (10:56 +0100)
commit63644780babdca3f40e1978a236b6cd78473c91b
tree03ed0d042a594a71df9c9921b1c8f9c1018675f0
parent487ad57ccfe1434e21774117d20dfd9e23f12afa
New remove-symbol-file command.

New command for removing symbol files added via
the add-symbol-file command.

2013-10-29  Nicolas Blanc  <nicolas.blanc@intel.com>

* breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
* objfiles.c (free_objfile): Notify free_objfile.
(is_addr_in_objfile): New function.
* objfiles.h (is_addr_in_objfile): New declaration.
* printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
events instead of solib_unloaded events.
(_initialize_printcmd): Register observer for free_objfile instead
of solib_unloaded notifications.
* solib.c (remove_user_added_objfile): New function.
* symfile.c (remove_symbol_file_command): New command.
(_initialize_symfile): Add remove-symbol-file.
gdb/doc
* observer.texi: New free_objfile event.

Signed-off-by: Nicolas Blanc <nicolas.blanc@intel.com>
gdb/breakpoint.c
gdb/doc/observer.texi
gdb/objfiles.c
gdb/objfiles.h
gdb/printcmd.c
gdb/solib.c
gdb/symfile.c