[Lldb-commits] [PATCH] D94937: [lldb] change SBStructuredData GetStringValue signature

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 20 15:30:03 PST 2021


JDevlieghere added a comment.

I replied before I actually tried to understand what your'e trying to achieve, and it's still not entirely clear to me. I think what you need is something similar like `python-typemaps.swig` which helps swig understand `char**` types and such.

For context, originally SWIG wasn't great at handling `std::string`s (which has since been fixed) and the designers of the SB API were worried about the ABI stability of the `std::string` class. None of these are concerns anymore today, but the ABI being stable means we're stuck with it for now. If we ever do an SB API v2, this is definitely one of the things we'd fix, but currently there are no plans for that.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94937/new/

https://reviews.llvm.org/D94937



More information about the lldb-commits mailing list