[Lldb-commits] [lldb] [LLDB][SaveCore] Add SBCoreDumpOptions Object, and SBProcess::SaveCore() overload (PR #98403)

Jacob Lalonde via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 10 15:57:35 PDT 2024


Jlalond wrote:

> > None of the SB API methods return any STL types/containers, like the std::optionals returned in this PR. I worry if this will make the bridging to other languages more complicated, but it's never something I've thought about before. @jimingham @bulbazord @clayborg @JDevlieghere may have a more informed opinion on whether this is important or not.
> 
> Yeah, we've been discussing introducing an `SBOptional` type at some point to be easier to bridge it with python but we should refrain from using the STL as return types / arguments for now.
> 
> Besides that, I've also noticed that your classes are named `CoreDumpOption`. On Apple platform, we call these "corefiles" so to be consistent accros various platform, lets just drop the "Dump" part from the class / method names and call it `CoreOption`

@clayborg actually mentioned this when I started work originally that we should avoid STL types. It seems I forgot while figuring out SWIG. 

As for `CoreOptions` vs `CoreDumpOptions`, the primary flavors I know of are Window's Kernel/Minidump and the ELF Coredumps. I think `CoreDumpOptions` is less ambiguous for that reason

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


More information about the lldb-commits mailing list