View | Details | Raw Unified | Return to bug 15415
Collapse All | Expand All

(-)gdb-7.6.original/gdb/utils.c (-1 / +9 lines)
Lines 3208-3214 Link Here
3208
#  define USE_REALPATH
3208
#  define USE_REALPATH
3209
# endif
3209
# endif
3210
# if defined (USE_REALPATH)
3210
# if defined (USE_REALPATH)
3211
    const char *rp = realpath (filename, buf);
3211
    const char *rp;
3212
3213
    if (readlink(filename, buf, sizeof(buf)) > 0)
3214
    {
3215
        return xstrdup(filename);
3216
    }
3217
3218
3219
    rp = realpath (filename, buf);
3212
3220
3213
    if (rp == NULL)
3221
    if (rp == NULL)
3214
      rp = filename;
3222
      rp = filename;

Return to bug 15415