Lines Matching defs:dir
331 cd_command (char *dir, int from_tty)
342 if (dir == 0)
345 dir = tilde_expand (dir);
346 make_cleanup (xfree, dir);
348 if (chdir (dir) < 0)
349 perror_with_name (dir);
355 dir = getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
358 len = strlen (dir);
359 if (IS_DIR_SEPARATOR (dir[len - 1]))
365 && !(len == 3 && dir[1] == ':') /* "d:/" */
371 dir = savestring (dir, len);
372 if (IS_ABSOLUTE_PATH (dir))
373 current_directory = dir;
377 current_directory = concat (current_directory, dir, NULL);
379 current_directory = concat (current_directory, SLASH_STRING, dir, NULL);
380 xfree (dir);