This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] New substitute-path commands


> 2.  Should the end of the rule be anchored to end of string or
> directory separator?

I was thinking about this, and almost ready to implement it. But
then I thought about the Windows case. On cygwin, the directory
separator is '/', but then some tools probably use '\' and we
accept it. On MinGW, the standard directory separator is '\', but
GCC at least uses forward slashes as far as I know.

So, in implementation terms, anchoring against the directory
separator is tricky on Windows. I think we should accept both.
I'm just not sure what is the best way of implementing this.
Looks like we might not be able to avoid an #ifdef macro.

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]