[Lldb-commits] [lldb] [LLDB] Extract process arguments from core dump for Linux (PR #185338)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 10 03:45:16 PDT 2026


================
@@ -1506,6 +1523,21 @@ class Process : public std::enable_shared_from_this<Process>,
   ///     File path to the core file.
   virtual FileSpec GetCoreFile() const { return {}; }
 
+  /// Provide arguments of a command that triggers a core dump
+  /// Only available when we have a core file
+  ///
+  /// \return
+  ///     Args of a core dump
+  Args GetCoreFileCommandString() {
----------------
DavidSpickett wrote:

This does not return a string it returns Args. Which was made from a string, but is no longer a string.

(...even if Args is a typedef for string, still a confusing function name)

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


More information about the lldb-commits mailing list