diff options
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 2501c947ef1..d257729d8f8 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -469,7 +469,8 @@ dbxout_init (const char *input_file_name) /* Put the current working directory in an N_SO symbol. */ if (use_gnu_debug_info_extensions) { - if (!cwd && (cwd = getpwd ()) && (!*cwd || cwd[strlen (cwd) - 1] != '/')) + if (!cwd && (cwd = get_src_pwd ()) + && (!*cwd || cwd[strlen (cwd) - 1] != '/')) cwd = concat (cwd, FILE_NAME_JOINER, NULL); if (cwd) { |