[Lldb-commits] [lldb] [lldb] Add support for changing char in Scalar::SetValueFromCString (PR #67784)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 29 07:40:21 PDT 2023
jimingham wrote:
This seems like a somewhat limited way to poke a character into the value if the string has more than one character already in it.
If you are trying to do more fancy setting of the contents of an SBValue, then it would be more straightforward to get the SBData for the value with GetData, then you have access to the actual bytes in the data, and you can poke in values wherever you want. I think that might be a better approach than trying to get SetValueFromCString to handle changing single character ValueObjects.
https://github.com/llvm/llvm-project/pull/67784
More information about the lldb-commits
mailing list