[Lldb-commits] [lldb] [lldb] progressive progress reporting for darwin kernel/firmware (PR #98845)
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 15 17:06:02 PDT 2024
================
@@ -195,20 +196,40 @@ ModuleSP DynamicLoader::LoadBinaryWithUUIDAndAddress(
Target &target = process->GetTarget();
Status error;
+ StreamString prog_str;
+ if (!name.empty()) {
+ prog_str << name.str() << " ";
+ }
+ if (uuid.IsValid())
+ prog_str << uuid.GetAsString();
+ if (value_is_offset == 0 && value != LLDB_INVALID_ADDRESS) {
+ prog_str << "at 0x";
+ prog_str.PutHex64(value);
+ }
+
if (!uuid.IsValid() && !value_is_offset) {
+ Progress progress_memread("Reading load commands from memory",
----------------
jasonmolenda wrote:
Good suggestion. I think I'll conditionalize this progress with a `if (!process->GetCoreFile())` -- reading a binary out of a local corefile will be very fast. Over a live gdb-remote connection, not so much.
https://github.com/llvm/llvm-project/pull/98845
More information about the lldb-commits
mailing list