Create target sections for user-added symbol files.
authorNicolas Blanc <nicolas.blanc@intel.com>
Wed, 17 Jul 2013 09:33:45 +0000 (11:33 +0200)
committerNicolas Blanc <nicolas.blanc@intel.com>
Tue, 29 Oct 2013 09:56:27 +0000 (10:56 +0100)
commit76ad5e1e2a20f078a6fe4272a05a932755bd2cf5
tree62a5d1ff629582c90ceb44e066e5ec0b552e37a3
parent98297bf675da669930bacf6d0c08bc4d1a34df3e
Create target sections for user-added symbol files.

Add the sections of the symbol files that are provided via
'add-symbol-file' to the set of current target sections.
User-added sections are removed upon notification of free_objfile
when their corresponding object file is deleted.

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

* exec.h (add_target_sections_of_objfile): New declaration.
* exec.c (add_target_sections_of_objfile): New function.
* symfile.c (add_symbol_file_command): Update current target sections.
(symfile_free_objfile): New function.
(_initialize_symfile): Register observer for free_objfile events.

Signed-off-by: Nicolas Blanc <nicolas.blanc@intel.com>
gdb/exec.c
gdb/exec.h
gdb/symfile.c