-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash with SBValue (core dumped) #23
Comments
Yes, this should probably be const char *SBValue::GetValue() {
LLDB_RECORD_METHOD_NO_ARGS(const char *, SBValue, GetValue);
const char *cstr = nullptr;
ValueLocker locker;
lldb::ValueObjectSP value_sp(GetSP(locker));
if (value_sp) {
cstr = value_sp->GetValueAsCString();
}
return cstr;
} On the Rust side, this is what it is doing now:
So that clearly should be handling the |
Ok, I see. The value isn't set in
|
Ok, I've understood where was my error. I've patched the crate and I'll make a PR with new bindings soon. |
In some cases, SBValue contains an other struct in
value
. Example: SBFrame when I want to get the list of registers :I think it's due to return type (
&str
).The text was updated successfully, but these errors were encountered: