This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/2] Make find_separate_debug_file* return std::string
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: gdb-patches at sourceware dot org
- Date: Thu, 08 Mar 2018 18:58:45 -0500
- Subject: Re: [PATCH 1/2] Make find_separate_debug_file* return std::string
- Authentication-results: sourceware.org; auth=none
- References: <20180303051016.28157-1-simon.marchi@polymtl.ca>
On 2018-03-03 00:10, Simon Marchi wrote:
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.
The buildbot seemed happy with these two patches, so I pushed them in.
Simon