From d3a76a5583ddb34402e79969f61f195cfa08ad62 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 7 Apr 2022 16:43:05 -0400 Subject: gdb: change file_file_name to return an std::string Straightforward change, return an std::string instead of a gdb::unique_xmalloc_ptr. No behavior change expected. Change-Id: Ia5e94c94221c35f978bb1b7bdffbff7209e0520e --- gdb/dwarf2/macro.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/dwarf2/macro.c') diff --git a/gdb/dwarf2/macro.c b/gdb/dwarf2/macro.c index b378d79..99c3653 100644 --- a/gdb/dwarf2/macro.c +++ b/gdb/dwarf2/macro.c @@ -52,7 +52,7 @@ macro_start_file (buildsym_compunit *builder, const struct line_header *lh) { /* File name relative to the compilation directory of this source file. */ - gdb::unique_xmalloc_ptr file_name = lh->file_file_name (file); + std::string file_name = lh->file_file_name (file); if (! current_file) { @@ -62,11 +62,11 @@ macro_start_file (buildsym_compunit *builder, /* If we have no current file, then this must be the start_file directive for the compilation unit's main source file. */ - current_file = macro_set_main (macro_table, file_name.get ()); + current_file = macro_set_main (macro_table, file_name.c_str ()); macro_define_special (macro_table); } else - current_file = macro_include (current_file, line, file_name.get ()); + current_file = macro_include (current_file, line, file_name.c_str ()); return current_file; } -- cgit v1.1