Patch ping
Tom Tromey
tromey@redhat.com
Fri Dec 7 11:02:00 GMT 2001
>>>>> "Eli" == Eli Zaretskii <eliz@is.elta.co.il> writes:
Eli> Hmm... I probably am missing something obvious, but fragments
Eli> like this one:
Eli> + if (IS_ABSOLUTE_PATH (name))
Eli> + real_path = gdb_realpath (name);
Eli> +
Eli> confuse me. Aren't they supposed to convert non-absolute file
Eli> name, that is, say "if (!IS_ABSOLUTE_PATH (name))"?
No, these calls canonicalize absolute paths. I believe realpath()
isn't guaranteed to do anything sensible with a relative path. I will
add comments to this effect.
Tom
More information about the Gdb-patches
mailing list