gdb: make symfile_segment_data::segment_info an std::vector
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 19 May 2020 16:18:05 +0000 (12:18 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 19 May 2020 16:18:36 +0000 (12:18 -0400)
commit9005fbbb0023f212fcd797227b839f21cb8bf0a1
tree12437fdcf47ab41839ad4e9a76430a826698b853
parent68b888fff3164b5e8e347d9c1ca351c366f0aac4
gdb: make symfile_segment_data::segment_info an std::vector

Change the symfile_segment_data::segment_info array to be an
std::vector.  No functional changes are expected.

gdb/ChangeLog:

* symfile.h (struct symfile_segment_data)
<~symfile_segment_data>: Remove.
<segment_info>: Change to std::vector.
* symfile.c (default_symfile_segments): Update.
* elfread.c (elf_symfile_segments): Update.
gdb/ChangeLog
gdb/elfread.c
gdb/symfile.c
gdb/symfile.h