aboutsummaryrefslogtreecommitdiff
path: root/gdb/target-section.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-09-29 22:59:22 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-10-19 10:57:51 -0400
commitbb86ab837e3c4eac98dba5618bf01894dd6b502a (patch)
tree1ae7227a5e21b5adc9f67e8ae187360c2818a043 /gdb/target-section.h
parentc1d21880e981f3f890a74cd9d133e82b26c32818 (diff)
downloadgdb-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/target-section.h')
-rw-r--r--gdb/target-section.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/target-section.h b/gdb/target-section.h
index 9dc716b..5d7c846 100644
--- a/gdb/target-section.h
+++ b/gdb/target-section.h
@@ -48,7 +48,7 @@ struct target_section
and used by remove_target_sections.
For example, for executables it is a pointer to exec_bfd and
for shlibs it is the so_list pointer. */
- void *owner;
+ const void *owner;
};
/* Holds an array of target sections. */