diff options
author | Nicolas Blanc <nicolas.blanc@intel.com> | 2013-07-17 11:33:45 +0200 |
---|---|---|
committer | Nicolas Blanc <nicolas.blanc@intel.com> | 2013-10-29 10:56:27 +0100 |
commit | 76ad5e1e2a20f078a6fe4272a05a932755bd2cf5 (patch) | |
tree | 62a5d1ff629582c90ceb44e066e5ec0b552e37a3 /gdb/exec.h | |
parent | 98297bf675da669930bacf6d0c08bc4d1a34df3e (diff) | |
download | gdb-76ad5e1e2a20f078a6fe4272a05a932755bd2cf5.zip gdb-76ad5e1e2a20f078a6fe4272a05a932755bd2cf5.tar.gz gdb-76ad5e1e2a20f078a6fe4272a05a932755bd2cf5.tar.bz2 |
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>
Diffstat (limited to 'gdb/exec.h')
-rw-r--r-- | gdb/exec.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. */ |