This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] fullname attribute for GDB/MI stack frames
> Date: Wed, 4 May 2005 13:58:02 -0400
> From: Christopher Faylor <me@cgf.cx>
>
> Nevertheless, I think it is irrelevant what could possibly show up
> in debug info since it is possible to convert everything into the
> x:\y or \\x\y form by using libiberty's lrealpath. That
> would reduce the regex for an absolute path on windows to:
>
> [a-zA-Z]:\\.*\|\\\\[^\\][^\\]*\\[^\\].*
This will fail UNCs, btw. So I think you should at least allow for
two consecutive backslashes at the beginning.
Also, I think lrealpath is the wrong place for converting everything
to backslashes, since it presumably is (or is intended to be) used in
many programs ported from Unix or GNU/Linux, and those programs
tolerate backslashes much less well than they do forward slashes. If
at all, convert everything to forward slashes.