X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fgdbsupport%2Fpathstuff.c;h=aa51e8f36eb8c7abaff8599ac9d354b4d62be608;hb=ff8577f64987a898e1dc5eb6afb66a404fb7bb16;hp=fafecd543d3b21b362a8ee471aa66608c781526f;hpb=e97e2dcd466b43824713e85e307c287b34c8b4bc;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdbsupport/pathstuff.c b/gdb/gdbsupport/pathstuff.c index fafecd543d..aa51e8f36e 100644 --- a/gdb/gdbsupport/pathstuff.c +++ b/gdb/gdbsupport/pathstuff.c @@ -134,7 +134,7 @@ gdb_abspath (const char *path) if (path[0] == '~') return gdb_tilde_expand_up (path); - if (IS_ABSOLUTE_PATH (path)) + if (IS_ABSOLUTE_PATH (path) || current_directory == NULL) return make_unique_xstrdup (path); /* Beware the // my son, the Emacs barfs, the botch that catch... */