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
On Wed, May 04, 2005 at 11:37:21PM +0300, Eli Zaretskii wrote:
>> 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.
That is what is supposed to be happening on the right side of the |.
I'm assuming that there won't be any of the strange \\.\ or \\?\
>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.
But lrealpath is presumably used in the gcc and binutils mingw ports
isn't it?
cgf