Make relocate_{path,gdb_directory} return std::string
[deliverable/binutils-gdb.git] / gdb / auto-load.c
index 616aeb6fc96a5988e26d05a20a74d844010fe248..115d5c10e821eb6b33521b7b365c9eb4cf03a2af 100644 (file)
@@ -178,7 +178,7 @@ static std::vector<gdb::unique_xmalloc_ptr<char>>
 auto_load_expand_dir_vars (const char *string)
 {
   char *s = xstrdup (string);
-  substitute_path_component (&s, "$datadir", gdb_datadir);
+  substitute_path_component (&s, "$datadir", gdb_datadir.c_str ());
   substitute_path_component (&s, "$debugdir", debug_file_directory);
 
   if (debug_auto_load && strcmp (s, string) != 0)
This page took 0.030258 seconds and 4 git commands to generate.