Make read_program_headers_from_bfd return a gdb::byte_vector
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 22 Aug 2018 18:18:08 +0000 (14:18 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 22 Aug 2018 18:18:08 +0000 (14:18 -0400)
commitd1012b8e33aaebe988aaf0723d26ddef9e155dbf
treecbcf49d5a044f29dcf5fee02e0bd36d9e6203375
parent17658d46e48ad4a7f6fb850422639b06c9d963aa
Make read_program_headers_from_bfd return a gdb::byte_vector

This patch makes read_program_headers_from_bfd return a gdb::byte_vector
instead of a plain pointer.

gdb/ChangeLog:

* solib-svr4.c (read_program_headers_from_bfd): Return
gdb::optional<gdb::byte_vector>.
(svr4_exec_displacement): Adjust.
gdb/ChangeLog
gdb/solib-svr4.c