Skip to content

Commit 44e6abf

Browse files
committed
Use the correct 'oso_path' instead of 'so_file'.
1 parent c3f5dfd commit 44e6abf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,8 +1287,7 @@ SymbolFileDWARFDebugMap::GetSeparateDebugInfoFiles() {
12871287
continue;
12881288

12891289
if (cu_map.find(info.oso_path) == cu_map.end())
1290-
cu_map[info.oso_path] = info.so_file;
1291-
;
1290+
cu_map[info.oso_path] = lldb_private::FileSpec(info.oso_path);
12921291
}
12931292
return cu_map;
12941293
}

lldb/test/API/python_api/sbmodule/SeperateDebugInfo/TestSBModuleSeparateDebugInfo.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ def test_get_separate_debug_info_files_dwo(self):
2929
self.assertEqual(len(file_specs), 1)
3030
self.assertTrue(file_specs[0].GetFilename().endswith(".dwo"))
3131

32-
@skipIf(debug_info=no_match("dsym"))
33-
def test_get_separate_debug_info_files_dsym(self):
32+
@skipUnlessDarwin
33+
@skipIf(debug_info=no_match("dwarf"))
34+
def test_get_separate_debug_info_files_darwin_dwarf(self):
3435
"""Test the SBModule::GetSeparateDebugInfoFiles"""
3536
self.build()
3637
exe = self.getBuildArtifact("a.out")
@@ -40,4 +41,4 @@ def test_get_separate_debug_info_files_dsym(self):
4041
main_module = target.GetModuleAtIndex(0)
4142
file_specs = main_module.GetSeparateDebugInfoFiles()
4243
self.assertEqual(len(file_specs), 1)
43-
self.assertTrue(file_specs[0].GetFilename().endswith(".a"))
44+
self.assertTrue(file_specs[0].GetFilename().endswith(".o"))

0 commit comments

Comments
 (0)