Index: include/lldb/Host/android/HostInfoAndroid.h =================================================================== --- include/lldb/Host/android/HostInfoAndroid.h +++ include/lldb/Host/android/HostInfoAndroid.h @@ -25,6 +25,7 @@ protected: static void ComputeHostArchitectureSupport(ArchSpec &arch_32, ArchSpec &arch_64); + static bool ComputeGlobalTempFileDirectory(FileSpec &file_spec); }; } // end of namespace lldb_private Index: source/Host/android/HostInfoAndroid.cpp =================================================================== --- source/Host/android/HostInfoAndroid.cpp +++ source/Host/android/HostInfoAndroid.cpp @@ -87,3 +87,15 @@ return FileSpec(); } + +bool +HostInfoAndroid::ComputeGlobalTempFileDirectory(FileSpec &file_spec) +{ + if (HostInfoLinux::ComputeGlobalTempFileDirectory(file_spec)) + return true; + + // If the default mechanism for computing the temp directory failed then + // fall back to /data/local/tmp + file_spec = FileSpec("/data/local/tmp", false); + return true; +}