This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] new substitute path when loading feature
> Date: Thu, 15 May 2008 16:11:54 -0400
> From: Aleksandar Ristovski <aristovski@qnx.com>
> CC: Daniel Jacobowitz <drow@false.org>, gdb-patches@sources.redhat.com,
> Eli Zaretskii <eliz@gnu.org>
>
> @Eli: Your 'if' wouldn't work as expected for common posix-style paths (it would default to case insensitive comparison which is unacceptable for posix paths)
I think you misunderstood what I was suggesting, but we don't have to
argue about that, as long as you agree with Daniel's solution (because
I was in effect suggesting the same thing).
> However, I'm not sure why you didn't like my original rewrite at readin... all the user would have to do for mixed path binaries is:
>
> set substitute-path C: /
> (which would make iberty's IS_ABSOLUTE_PATH work on posix-ly configured gdbs)
>
> and this could be done by default in main :-)
I think this suggestion is so subtle that no one who has such a
problem would ever be able to guess that substitute-path is the
solution.
In other words, when a user has problem with DOS-style file names, she
will look for a solution whose name has something in common with "DOS"
and "file name", and substitute-path doesn't qualify. A good UI
should have high mnemonic significance to be helpful.