Some fixes for case insensitive paths on Windows.
authorZachary Turner <zturner@google.com>
Wed, 24 Feb 2016 21:26:47 +0000 (21:26 +0000)
committerZachary Turner <zturner@google.com>
Wed, 24 Feb 2016 21:26:47 +0000 (21:26 +0000)
commit47c03462f52a13ba79ac257e7de88a74dd23f5d7
tree33978281912ffc0642edc2732b252f5bb4698176
parent72c57f49c4b5638626f5a6ff91187f33976c321f
Some fixes for case insensitive paths on Windows.

Paths on Windows are not case-sensitive.  Because of this, if a file
is called main.cpp, you should be able to set a breakpoint on it
by using the name Main.cpp.  In an ideal world, you could just
tell people to match the case, but in practice this can be a real
problem as it requires you to know whether the person who compiled
the program ran "clang++ main.cpp" or "clang++ Main.cpp", both of
which would work, regardless of what the file was actually called.

This fixes http://llvm.org/pr22667

Patch by Petr Hons

Differential Revision: http://reviews.llvm.org/D17492
Reviewed by: zturner

llvm-svn: 261771
lldb/include/lldb/Core/ConstString.h
lldb/include/lldb/Host/FileSpec.h
lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_case_sensitivity/Makefile [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_case_sensitivity/TestBreakpointCaseSensitivity.py [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_case_sensitivity/main.c [new file with mode: 0644]
lldb/source/Core/ConstString.cpp
lldb/source/Core/FileSpecList.cpp
lldb/source/Host/common/FileSpec.cpp