[RFC] new substitute path when loading feature

Aleksandar Ristovski aristovski@qnx.com
Fri May 16 08:19:00 GMT 2008


Daniel Jacobowitz wrote:
> On Thu, May 15, 2008 at 10:28:10PM +0300, Eli Zaretskii wrote:
>>> Date: Thu, 15 May 2008 15:16:42 -0400
>>> From: Daniel Jacobowitz <drow@false.org>
>>> Cc: aristovski@qnx.com, gdb-patches@sources.redhat.com
>>>
>>> I'm happy to add the band-aid; do you have an idea of what to call it?
>>> set strict-filenames?
>> How about "set support-dos-filenames" (on by default)?
> 
> I like that better, thanks!  I'll work on the option (not right now).
>

You will probably want this wrapped in an if. In fact, I don't see how will it work properly with only one flag - we probably don't want to do case-insensitive compare by default, but we do need to compare case insensitive for dos-like file system.
 
#ifndef HAVE_DOS_BASED_FILE_SYSTEM
+      /* When debugging on a POSIX host, assume that each filename was
+	 recorded with a single consistent capitalization during
+	 compilation.  Source trees are too likely to contain both
+	 main.c and Main.c.  */
+      if (*lhs == *rhs)
+	continue;
+#else
+      if (tolower (*lhs) == tolower (*rhs))
+	continue;
+#endif
+



More information about the Gdb-patches mailing list