[Lldb-commits] [lldb] [lldb][nfc] Factor out repeated code in DWIM Print (PR #85669)

Dave Lee via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 18 14:04:59 PDT 2024


================
@@ -129,6 +129,19 @@ void CommandObjectDWIMPrint::DoExecute(StringRef command,
     }
   };
 
+  // Dump `valobj` according to whether `po` was requested or not.
+  auto dump_val_object = [&](ValueObject &valobj) {
----------------
kastiglione wrote:

Would you mind also applying this function to the block that handles persistent variables (I just added it in #85152). Thanks.

https://github.com/llvm/llvm-project/pull/85669


More information about the lldb-commits mailing list