From a8dbfd5853e3a5f7f2a3ca817e96d9e0759061a2 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 8 Mar 2018 18:56:23 -0500 Subject: 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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0ee5178..7e4bd95 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,20 @@ 2018-03-08 Simon Marchi + * 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. + +2018-03-08 Simon Marchi + * common/xml-utils.c (xml_escape_text): Move code to... (xml_escape_text_append): ... this new function. * common/xml-utils.h (xml_escape_text_append): New declaration. -- cgit v1.1