hanchenye-llvm-project/lldb/source
Greg Clayton f258bf9017 llvm::sys::path::home_directory() relies on having "HOME" set in the environment and that might not always be set. Our FileSpec class uses this function to resolve any paths that start with "~/" on systems that support home directories as '~'. I have modified FileSpec::ResolveUsername (llvm::SmallVectorImpl<char> &path) to deal with the cases where llvm::sys::path::home_directory() returns false by digging a little further on unix systems and setting "HOME" in the environment so that subsequent calls to llvm::sys::path::home_directory() will succeed.
I also added a test to ensure we don't regress.

<rdar://problem/25342377> 

llvm-svn: 266832
2016-04-19 23:04:35 +00:00
..
API Attempt to fix darwin build after header refactor in llvm (r266595) 2016-04-18 12:18:35 +00:00
Breakpoint Breakpoint conditions were making result variables, which they should not do. 2016-04-12 17:17:35 +00:00
Commands Use the FormatEntity work for great good - parse summary strings before accepting them, and fail to add any strings that fail parsing 2016-04-12 21:57:11 +00:00
Core Fix cmake build after r266524. 2016-04-16 16:29:17 +00:00
DataFormatters Remove even more of the data formatters that silently run code 2016-04-08 21:24:24 +00:00
Expression Fix usage of APInt.getRawData for big-endian systems 2016-04-15 09:55:52 +00:00
Host llvm::sys::path::home_directory() relies on having "HOME" set in the environment and that might not always be set. Our FileSpec class uses this function to resolve any paths that start with "~/" on systems that support home directories as '~'. I have modified FileSpec::ResolveUsername (llvm::SmallVectorImpl<char> &path) to deal with the cases where llvm::sys::path::home_directory() returns false by digging a little further on unix systems and setting "HOME" in the environment so that subsequent calls to llvm::sys::path::home_directory() will succeed. 2016-04-19 23:04:35 +00:00
Initialization Move DynamicLoader plugins to SystemInitializerFull 2016-03-29 15:00:26 +00:00
Interpreter Add help for our regular expression commands when aliased 2016-04-08 17:56:26 +00:00
Plugins Fix usage of APInt.getRawData for big-endian systems 2016-04-15 09:55:52 +00:00
Symbol Fix usage of APInt.getRawData for big-endian systems 2016-04-15 09:55:52 +00:00
Target Revert "LLDB: Fixed two race conditions when stopping private state thread" 2016-04-19 14:03:43 +00:00
Utility Work around a linux libc bug causing a crash in TaskPool 2016-04-15 10:49:07 +00:00
CMakeLists.txt Add initial CMake glue for the NetBSD platform 2015-10-24 00:27:04 +00:00
lldb.cpp Add more NetBSD platform glue for lldb 2015-11-07 15:31:54 +00:00