Make find_separate_debug_file* return std::string
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 8 Mar 2018 23:56:23 +0000 (18:56 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 8 Mar 2018 23:56:23 +0000 (18:56 -0500)
commita8dbfd5853e3a5f7f2a3ca817e96d9e0759061a2
tree6afc9df31bdc7097c42d1b0b8d0c994ba354e626
parente6a58aa8a70c7fd17d9930e7df8d158a7e3c8c8e
Make find_separate_debug_file* return std::string

This patch makes the find_separate_debug_file* functions return
std::string, which allows to get rid of some manual memory management
and one cleanup.

gdb/ChangeLog:

* build-id.c (find_separate_debug_file_by_buildid): Return
std::string.
* build-id.h (find_separate_debug_file_by_buildid): Return
std::string.
* coffread.c (coff_symfile_read): Adjust to std::string.
* elfread.c (elf_symfile_read): Adjust to std::string.
* symfile.c (separate_debug_file_exists): Change parameter to
std::string.
(find_separate_debug_file): Return std::string.
(find_separate_debug_file_by_debuglink): Return std::string.
* symfile.h (find_separate_debug_file_by_debuglink): Return
std::string.
gdb/ChangeLog
gdb/build-id.c
gdb/build-id.h
gdb/coffread.c
gdb/elfread.c
gdb/symfile.c
gdb/symfile.h