Skip to content

Don't search for separate debug files for mach-o object files (#81041) #8147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,13 @@ SymbolVendorMacOSX::CreateInstance(const lldb::ModuleSP &module_sp,
FileSpec dsym_fspec(module_sp->GetSymbolFileFileSpec());

ObjectFileSP dsym_objfile_sp;
if (!dsym_fspec) {
// On Darwin, we store the debug information either in object files,
// using the debug map to tie them to the executable, or in a dSYM. We
// pass through this routine both for binaries and for .o files, but in the
// latter case there will never be an external debug file. So we shouldn't
// do all the stats needed to find it.
if (!dsym_fspec && module_sp->GetObjectFile()->CalculateType() !=
ObjectFile::eTypeObjectFile) {
// No symbol file was specified in the module, lets try and find one
// ourselves.
FileSpec file_spec = obj_file->GetFileSpec();
Expand Down