llvm-project/lldb/source/Target
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
..
ABI.cpp Make lldb -Werror clean for -Wstring-conversion 2017-01-06 00:38:06 +00:00
CMakeLists.txt Add StructuredData plugin type; showcase with new DarwinLog feature 2016-08-19 04:21:48 +00:00
CPPLanguageRuntime.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ExecutionContext.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
FileAction.cpp Change FileAction::GetPath() to return a StringRef. 2016-09-23 22:11:51 +00:00
InstrumentationRuntime.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
InstrumentationRuntimeStopInfo.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
JITLoader.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
JITLoaderList.cpp [lldb] Fix typos in file headers 2016-11-26 05:23:44 +00:00
Language.cpp Implement a general type scavenger that can dig types from debug info + a filtering mechanism to accept/reject results thusly obtained 2016-11-01 18:50:49 +00:00
LanguageRuntime.cpp Convert CommandObject constructors to StringRef. 2016-10-05 21:14:38 +00:00
Memory.cpp Make lldb -Werror clean on Windows. 2016-10-05 17:07:34 +00:00
MemoryHistory.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ObjCLanguageRuntime.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
OperatingSystem.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
PathMappingList.cpp Change Module::RemapPath to use StringRef. 2016-09-23 18:42:38 +00:00
Platform.cpp Replace getcwd with the llvm equivalent 2017-01-23 15:56:45 +00:00
Process.cpp Fix a bug when using a StructuredData darwin-log plugin 2016-12-16 02:48:39 +00:00
ProcessInfo.cpp Rewrite all Property related functions in terms of StringRef. 2016-11-17 18:08:12 +00:00
ProcessLaunchInfo.cpp Replace getcwd with the llvm equivalent 2017-01-23 15:56:45 +00:00
Queue.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
QueueItem.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
QueueList.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
RegisterContext.cpp Make GetRegisterByName() take a StringRef. 2016-11-17 21:54:37 +00:00
SectionLoadHistory.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
SectionLoadList.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
StackFrame.cpp Fix a bug caught by adding LLVM_NODISCARD to StringRef. 2016-11-21 23:18:13 +00:00
StackFrameList.cpp Make lldb -Werror clean for -Wstring-conversion 2017-01-06 00:38:06 +00:00
StackID.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
StopInfo.cpp Rollback my commit r290168 to fix linux tests failure. I'll be back! 2016-12-20 20:00:58 +00:00
StructuredDataPlugin.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
SystemRuntime.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Target.cpp Add methods to enable using formatv syntax in LLDB. 2016-12-16 04:27:00 +00:00
TargetList.cpp Replace getcwd with the llvm equivalent 2017-01-23 15:56:45 +00:00
Thread.cpp Rollback my commit r290168 to fix linux tests failure. I'll be back! 2016-12-20 20:00:58 +00:00
ThreadCollection.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadList.cpp Fixed a crasher that has been borking out heap for a long time. 2016-12-08 20:38:19 +00:00
ThreadPlan.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanBase.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanCallFunction.cpp Don't allow direct access to StreamString's internal buffer. 2016-11-16 21:15:24 +00:00
ThreadPlanCallFunctionUsingABI.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanCallOnFunctionExit.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanCallUserExpression.cpp Don't allow direct access to StreamString's internal buffer. 2016-11-16 21:15:24 +00:00
ThreadPlanPython.cpp [lldb] Fix typos in file headers 2016-11-26 05:23:44 +00:00
ThreadPlanRunToAddress.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanShouldStopHere.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanStepInRange.cpp Make lldb::Regex use StringRef. 2016-09-21 16:01:28 +00:00
ThreadPlanStepInstruction.cpp Rollback my commit r290168 to fix linux tests failure. I'll be back! 2016-12-20 20:00:58 +00:00
ThreadPlanStepOut.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanStepOverBreakpoint.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanStepOverRange.cpp Fix step-over when SymbolContext.function is missing and symbol is present. 2016-11-17 22:29:31 +00:00
ThreadPlanStepRange.cpp Rollback my commit r290168 to fix linux tests failure. I'll be back! 2016-12-20 20:00:58 +00:00
ThreadPlanStepThrough.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanStepUntil.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanTracer.cpp [lldb] Fix typos in file headers 2016-11-26 05:23:44 +00:00
ThreadSpec.cpp Serilize the thread options within the breakpoint options. 2016-09-22 22:00:59 +00:00
UnixSignals.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
UnwindAssembly.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00