Make read_program_header return a gdb::byte_vector
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 22 Aug 2018 18:17:57 +0000 (14:17 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 22 Aug 2018 18:17:57 +0000 (14:17 -0400)
commit17658d46e48ad4a7f6fb850422639b06c9d963aa
tree08a614f137cb9c1fd9487a53e9dd9abf2b4bd03a
parent4e2aa472847923f94b99f138d7fc4c77796f8239
Make read_program_header return a gdb::byte_vector

While reading a recent patch, I found this spot where a gdb::byte_vector
could be used instead of an allocated buffer returned as a plain
pointer.

gdb/ChangeLog:

* solib-svr4.c (read_program_header): Return
gdb::optional<gdb::byte_vector>, remove p_sect_size param.
(find_program_interpreter): Return
gdb::optional<gdb::byte_vector>.
(scan_dyntag_auxv): Adjust.
(enable_break): Adjust.
(svr4_exec_displacement): Adjust.
gdb/ChangeLog
gdb/solib-svr4.c