This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Patch ping
>>>>> "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