llvm-project/lldb/source
Pavel Labath 1d5855b107 Replace getcwd with the llvm equivalent
Summary:
getcwd() is not available (well.. um.. deprecated?) on windows, and the way
PosixApi.h is providing it causes strange compile errors when it's included in
the wrong order. The best way to avoid that is to just not use chdir.

This replaces all uses of getcwd in generic code. There are still a couple of
more uses, but these are in platform-specific code.

chdir() is causing a similar problem, but for that there is no llvm equivalent
for that (yet).

Reviewers: zturner

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D28858

llvm-svn: 292795
2017-01-23 15:56:45 +00:00
..
API [CMake] Only support LLDB_BUILD_FRAMEWORK on CMake 3.7 and later 2016-12-15 18:18:47 +00:00
Breakpoint Add methods to enable using formatv syntax in LLDB. 2016-12-16 04:27:00 +00:00
Commands Provide a substitute to load command of gdb. 2017-01-19 17:32:50 +00:00
Core Provide a substitute to load command of gdb. 2017-01-19 17:32:50 +00:00
DataFormatters [lldb] Fix typos in file headers 2016-11-26 05:23:44 +00:00
Expression Make lldb -Werror clean for -Wstring-conversion 2017-01-06 00:38:06 +00:00
Host Replace getcwd with the llvm equivalent 2017-01-23 15:56:45 +00:00
Initialization Adopt PrettyStackTrace in LLDB 2016-12-14 21:31:31 +00:00
Interpreter Make lldb -Werror clean for -Wstring-conversion 2017-01-06 00:38:06 +00:00
Plugins Replace getcwd with the llvm equivalent 2017-01-23 15:56:45 +00:00
Symbol Fix more unused variable warnings when asserts are disabled. 2017-01-20 10:24:03 +00:00
Target Replace getcwd with the llvm equivalent 2017-01-23 15:56:45 +00:00
Utility Replace __ANDROID_NDK__ with __ANDROID__ 2016-12-02 11:15:15 +00:00
CMakeLists.txt [CMake] Fixing CMake to append source properties instead of overwrite them. 2016-11-10 23:56:32 +00:00
lldb.cpp One more cleanup to lldb version printing 2016-11-14 22:43:08 +00:00