diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index 3fe4cca461ba6..30b6b45d3f6b9 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -1371,9 +1371,9 @@ void Module::SectionFileAddressesChanged() { UnwindTable &Module::GetUnwindTable() { if (!m_unwind_table) { - m_unwind_table.emplace(*this); if (!m_symfile_spec) SymbolLocator::DownloadSymbolFileAsync(GetUUID()); + m_unwind_table.emplace(*this); } return *m_unwind_table; } @@ -1491,15 +1491,10 @@ void Module::SetSymbolFileFileSpec(const FileSpec &file) { // one obj_file->ClearSymtab(); - // Clear the unwind table too, as that may also be affected by the - // symbol file information. - m_unwind_table.reset(); - // The symbol file might be a directory bundle ("/tmp/a.out.dSYM") // instead of a full path to the symbol file within the bundle // ("/tmp/a.out.dSYM/Contents/Resources/DWARF/a.out"). So we need to // check this - if (FileSystem::Instance().IsDirectory(file)) { std::string new_path(file.GetPath()); std::string old_path(obj_file->GetFileSpec().GetPath()); diff --git a/lldb/test/Shell/SymbolFile/target-symbols-add-unwind.test b/lldb/test/Shell/SymbolFile/target-symbols-add-unwind.test deleted file mode 100644 index 5420213d405e8..0000000000000 --- a/lldb/test/Shell/SymbolFile/target-symbols-add-unwind.test +++ /dev/null @@ -1,27 +0,0 @@ -# TODO: When it's possible to run "image show-unwind" without a running -# process, we can remove the unsupported line below, and hard-code an ELF -# triple in the test. -# UNSUPPORTED: system-windows, system-darwin - -# RUN: cd %T -# RUN: %clang_host %S/Inputs/target-symbols-add-unwind.c -g \ -# RUN: -fno-unwind-tables -fno-asynchronous-unwind-tables \ -# RUN: -o target-symbols-add-unwind.debug -# RUN: llvm-objcopy --strip-debug target-symbols-add-unwind.debug \ -# RUN: target-symbols-add-unwind.stripped -# RUN: %lldb target-symbols-add-unwind.stripped -s %s -o quit | FileCheck %s - -process launch --stop-at-entry -image show-unwind -n main -# CHECK-LABEL: image show-unwind -n main -# CHECK-NOT: debug_frame UnwindPlan: - -target symbols add -s target-symbols-add-unwind.stripped target-symbols-add-unwind.debug -# CHECK-LABEL: target symbols add -# CHECK: symbol file {{.*}} has been added to {{.*}} - -image show-unwind -n main -# CHECK-LABEL: image show-unwind -n main -# CHECK: debug_frame UnwindPlan: -# CHECK-NEXT: This UnwindPlan originally sourced from DWARF CFI -# CHECK-NEXT: This UnwindPlan is sourced from the compiler: yes.