================
@@ -161,6 +165,27 @@ FileSpec HostInfoBase::GetSystemPluginDir() {
   return g_fields->m_lldb_system_plugin_dir;
 }
 
+FileSpec HostInfoBase::GetUserHomeDir() {
+  llvm::call_once(g_fields->m_lldb_user_home_dir_once, []() {
+    if (!HostInfo::ComputeUserHomeDirectory(g_fields->m_lldb_user_home_dir))
+      g_fields->m_lldb_user_home_dir = FileSpec();
+    Log *log = GetLog(LLDBLog::Host);
+    LLDB_LOG(log, "user home dir -> `{0}`", g_fields->m_lldb_user_home_dir);
+  });
+  return g_fields->m_lldb_user_home_dir;
+}
+
+FileSpec HostInfoBase::GetUserLLDBDir() {
+  llvm::call_once(g_fields->m_lldb_user_lldb_dir_once, []() {
+    if 
(!HostInfo::ComputeUserLLDBHomeDirectory(g_fields->m_lldb_user_lldb_dir))
+      g_fields->m_lldb_user_lldb_dir = FileSpec();
+    Log *log = GetLog(LLDBLog::Host);
+    LLDB_LOG(log, "user lldb home dir -> `{0}`",
----------------
JDevlieghere wrote:

```suggestion
    LLDB_LOG(GetLog(LLDBLog::Host), "user lldb home dir -> `{0}`",
```

https://github.com/llvm/llvm-project/pull/155714
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to