Use symbol_set_language to set a symbol's language
[deliverable/binutils-gdb.git] / gdb / source.c
index d9cd5f32caf68e70fbb99d4e08f2a9ced945966f..cf752a69380c7ddc860e0eca0dc7c76c2ae721b8 100644 (file)
@@ -540,8 +540,7 @@ add_path (const char *dirname, char **which_path, int parse_separators)
        new_name_holder.reset (concat (name, ".", (char *) NULL));
 #endif
       else if (!IS_ABSOLUTE_PATH (name) && name[0] != '$')
-       new_name_holder.reset (concat (current_directory, SLASH_STRING, name,
-                                      (char *) NULL));
+       new_name_holder = gdb_abspath (name);
       else
        new_name_holder.reset (savestring (name, p - name));
       name = new_name_holder.get ();
@@ -679,7 +678,7 @@ info_source_command (const char *ignore, int from_tty)
    letters (for dos) as well as leading '/' characters and './'
    sequences.  */
 
-const char *
+static const char *
 prepare_path_for_appending (const char *path)
 {
   /* For dos paths, d:/foo -> /foo, and d:foo -> foo.  */
This page took 0.024347 seconds and 4 git commands to generate.