[Lldb-commits] [PATCH] D143236: [lldb] Add a way to get a scripted process implementation from the SBAPI
Med Ismail Bennani via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 2 17:40:58 PST 2023
mib added a comment.
In D143236#4101429 <https://reviews.llvm.org/D143236#4101429>, @bulbazord wrote:
> This is an interesting idea.
>
> I suppose I find it a little strange that something from the SB API is passing a void * back to the caller instead of something more well defined (like another SB class or some primitive) but I suppose that's not the worst thing in the world. I'm not sure how else you would get a C++ method to return a type that is dependent on which language the method was called from...
So, technically, we could also do something similar with `SBStructuredData` since now they don't allow holding generic objects. You can then image that the user will be able to unwrap the structured data to get the original object. I think @jingham also had other examples in mind, like for breakpoint python commands, if I'm not mistaken.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143236/new/
https://reviews.llvm.org/D143236
More information about the lldb-commits
mailing list