diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-09-29 22:59:22 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-10-19 10:57:51 -0400 |
commit | bb86ab837e3c4eac98dba5618bf01894dd6b502a (patch) | |
tree | 1ae7227a5e21b5adc9f67e8ae187360c2818a043 /gdb/exec.c | |
parent | c1d21880e981f3f890a74cd9d133e82b26c32818 (diff) | |
download | gdb-bb86ab837e3c4eac98dba5618bf01894dd6b502a.zip gdb-bb86ab837e3c4eac98dba5618bf01894dd6b502a.tar.gz gdb-bb86ab837e3c4eac98dba5618bf01894dd6b502a.tar.bz2 |
gdb: replace some so_list parameters to use references
A subsequent patch changes so_list to be linked using
intrusive_list. Iterating an intrusive_list yields some references to
the list elements. Convert some functions accepting so_list objects to
take references, to make things easier and more natural. Add const
where possible and convenient.
Change-Id: Id5ab5339c3eb6432e809ad14782952d6a45806f3
Approved-By: Pedro Alves <pedro@palves.net>
Reviewed-By: Reviewed-By: Lancelot Six <lancelot.six@amd.com>
Diffstat (limited to 'gdb/exec.c')
-rw-r--r-- | gdb/exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -599,7 +599,7 @@ build_section_table (struct bfd *some_bfd) current set of target sections. */ void -program_space::add_target_sections (void *owner, +program_space::add_target_sections (const void *owner, const target_section_table §ions) { if (!sections.empty ()) @@ -651,7 +651,7 @@ program_space::add_target_sections (struct objfile *objfile) OWNER must be the same value passed to add_target_sections. */ void -program_space::remove_target_sections (void *owner) +program_space::remove_target_sections (const void *owner) { gdb_assert (owner != NULL); |