From f57bc81732620e357d9a22e5c91b790cc93ea214 Mon Sep 17 00:00:00 2001 From: Casey Dahlin <sadmac@google.com> Date: Wed, 17 Apr 2019 00:16:07 +0000 Subject: [PATCH] [debugger] Create .build-id in symbol cache path Change-Id: I94162ee8c71c057ed90b5f7a53e98c545cc309be --- src/developer/debug/zxdb/client/system_impl.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/developer/debug/zxdb/client/system_impl.cc b/src/developer/debug/zxdb/client/system_impl.cc index 98cc24fc2f9..649231da5d9 100644 --- a/src/developer/debug/zxdb/client/system_impl.cc +++ b/src/developer/debug/zxdb/client/system_impl.cc @@ -4,6 +4,7 @@ #include "src/developer/debug/zxdb/client/system_impl.h" +#include <filesystem> #include <set> #include "src/developer/debug/shared/logging/debug.h" @@ -292,6 +293,9 @@ void SystemImpl::OnSettingChanged(const SettingStore& store, auto path = store.GetString(setting_name); if (!path.empty()) { + std::error_code ec; + std::filesystem::create_directory( + std::filesystem::path(path) / ".build-id", ec); GetSymbols()->build_id_index().AddSymbolSource(path); } } else if (setting_name == ClientSettings::System::kSymbolServers) { -- GitLab