[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
Wed Mar 25 04:02:38 PDT 2026


================

----------------
DavidSpickett wrote:

I'm bothered by:
* The logic of printing this being in 2 places (though it is pretty simple logic).
* This magic number ending up in a generic class.

Conceptually the arguments are a pair of `Args, Complete` where Complete is true if we are sure we have all of them.

If you were to make a wrapper object you could add a format method to that, that takes a stream to format into. Then processelfcore can do the magic 79 check and set a bool that the generic code uses.

I know that seems like a lot for what is a small change but we really, really, like to keep target or format specific details out of the top level code.

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


More information about the lldb-commits mailing list