diff options
author | Tom Tromey <tom@tromey.com> | 2020-10-29 15:04:33 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-10-29 15:04:40 -0600 |
commit | 3769e2277d352243fa0121d68efe31ae5edc10d5 (patch) | |
tree | 5ba00620cd4f327f0dc9261142099fa34d1f2843 /gdb/progspace.h | |
parent | 2a3f84af539b4dc5473c44b0a01c1bcdfc7a1300 (diff) | |
download | fsf-binutils-gdb-3769e2277d352243fa0121d68efe31ae5edc10d5.zip fsf-binutils-gdb-3769e2277d352243fa0121d68efe31ae5edc10d5.tar.gz fsf-binutils-gdb-3769e2277d352243fa0121d68efe31ae5edc10d5.tar.bz2 |
Change add_target_sections to method on program_space
This changes add_target_sections to be a method on program_space.
Like the earlier change to remove_target_sections, this makes sense
because this function is manipulating data that is stored on the
program space.
gdb/ChangeLog
2020-10-29 Tom Tromey <tom@tromey.com>
* solib.c (solib_map_sections): Update.
* exec.c (program_space::add_target_sections): Now a method.
(exec_file_attach): Update.
* exec.h (add_target_sections): Don't declare.
* progspace.h (struct program_space) <add_target_sections>:
Declare.
Diffstat (limited to 'gdb/progspace.h')
-rw-r--r-- | gdb/progspace.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/progspace.h b/gdb/progspace.h index f4e1107..92a7942 100644 --- a/gdb/progspace.h +++ b/gdb/progspace.h @@ -300,6 +300,11 @@ struct program_space /* Remove all target sections owned by OWNER. */ void remove_target_sections (void *owner); + /* Add the sections array defined by SECTIONS to the + current set of target sections. */ + void add_target_sections (void *owner, + const target_section_table §ions); + /* Unique ID number. */ int num = 0; |