]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: replace some so_list parameters to use references
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 30 Sep 2023 02:59:22 +0000 (22:59 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 19 Oct 2023 14:57:51 +0000 (10:57 -0400)
commitbb86ab837e3c4eac98dba5618bf01894dd6b502a
tree1ae7227a5e21b5adc9f67e8ae187360c2818a043
parentc1d21880e981f3f890a74cd9d133e82b26c32818
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>
23 files changed:
gdb/breakpoint.c
gdb/bsd-uthread.c
gdb/exec.c
gdb/interps.c
gdb/interps.h
gdb/mi/mi-cmd-file.c
gdb/mi/mi-interp.c
gdb/mi/mi-interp.h
gdb/nto-tdep.c
gdb/nto-tdep.h
gdb/observable.h
gdb/progspace.h
gdb/solib-aix.c
gdb/solib-darwin.c
gdb/solib-dsbt.c
gdb/solib-frv.c
gdb/solib-rocm.c
gdb/solib-svr4.c
gdb/solib-target.c
gdb/solib.c
gdb/solib.h
gdb/solist.h
gdb/target-section.h