aboutsummaryrefslogtreecommitdiff
path: root/gdb/solist.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-10-10 15:59:57 +0000
committerSimon Marchi <simon.marchi@efficios.com>2023-10-19 10:57:51 -0400
commitae19ef71d2248d588a9f3a5545e1882f696cb86e (patch)
tree005120469daa8efe7db9cdbe54901b2dd921929a /gdb/solist.h
parent25b5a04e858ae7c0dd859c082b35f63d9ee50feb (diff)
downloadgdb-ae19ef71d2248d588a9f3a5545e1882f696cb86e.zip
gdb-ae19ef71d2248d588a9f3a5545e1882f696cb86e.tar.gz
gdb-ae19ef71d2248d588a9f3a5545e1882f696cb86e.tar.bz2
gdb: make so_list::sections not a pointer
Make the field a vector directly, instead of a pointer to a vector. This was needed when so_list had to be a trivial type, which is not the case anymore. Change-Id: I79a8378ce0d0d1e2206ca08a273ebf332cb3ba14 Approved-By: Pedro Alves <pedro@palves.net> Reviewed-By: Reviewed-By: Lancelot Six <lancelot.six@amd.com>
Diffstat (limited to 'gdb/solist.h')
-rw-r--r--gdb/solist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solist.h b/gdb/solist.h
index ca12fd5..51b985d 100644
--- a/gdb/solist.h
+++ b/gdb/solist.h
@@ -84,7 +84,7 @@ struct so_list
the file cannot be found or after the command "nosharedlibrary". */
struct objfile *objfile = nullptr;
- std::vector<target_section> *sections = nullptr;
+ std::vector<target_section> sections;
/* Record the range of addresses belonging to this shared library.
There may not be just one (e.g. if two segments are relocated