[Lldb-commits] [PATCH] D122177: [lldb] Fix log & progress report for in-memory binaries
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 21 15:36:32 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3323321f4ef0: [lldb] Fix log & progress report for in-memory binaries (authored by JDevlieghere).
Herald added a project: LLDB.
Changed prior to commit:
https://reviews.llvm.org/D122177?vs=417077&id=417117#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122177/new/
https://reviews.llvm.org/D122177
Files:
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
Index: lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
===================================================================
--- lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
+++ lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
@@ -2201,14 +2201,14 @@
enum { DebugSymbols = true, NonDebugSymbols = false };
void ObjectFileMachO::ParseSymtab(Symtab &symtab) {
- LLDB_SCOPED_TIMERF("ObjectFileMachO::ParseSymtab () module = %s",
- m_file.GetFilename().AsCString(""));
ModuleSP module_sp(GetModule());
if (!module_sp)
return;
- Progress progress(llvm::formatv("Parsing symbol table for {0}",
- m_file.GetFilename().AsCString("<Unknown>")));
+ const FileSpec &file = m_file ? m_file : module_sp->GetFileSpec();
+ const char *file_name = file.GetFilename().AsCString("<Unknown>");
+ LLDB_SCOPED_TIMERF("ObjectFileMachO::ParseSymtab () module = %s", file_name);
+ Progress progress(llvm::formatv("Parsing symbol table for {0}", file_name));
llvm::MachO::symtab_command symtab_load_command = {0, 0, 0, 0, 0, 0};
llvm::MachO::linkedit_data_command function_starts_load_command = {0, 0, 0, 0};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122177.417117.patch
Type: text/x-patch
Size: 1198 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220321/544c634a/attachment.bin>
More information about the lldb-commits
mailing list