forked from Imagelibrary/binutils-gdb
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>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
struct target_section;
|
||||
struct target_ops;
|
||||
struct bfd;
|
||||
struct objfile;
|
||||
|
||||
extern struct target_ops exec_ops;
|
||||
|
||||
@@ -93,6 +94,11 @@ extern void add_target_sections (void *owner,
|
||||
struct target_section *sections,
|
||||
struct target_section *sections_end);
|
||||
|
||||
/* Add the sections of OBJFILE to the current set of target sections.
|
||||
* OBJFILE owns the new target sections. */
|
||||
|
||||
extern void add_target_sections_of_objfile (struct objfile *objfile);
|
||||
|
||||
/* Prints info about all sections defined in the TABLE. ABFD is
|
||||
special cased --- it's filename is omitted; if it is the executable
|
||||
file, its entry point is printed. */
|
||||
|
||||
Reference in New Issue
Block a user