-
Notifications
You must be signed in to change notification settings - Fork 353
[lldb] Add alternative SBThread::GetStopDescription (#165379) #11856
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
base: swift/release/6.3
Are you sure you want to change the base?
Conversation
the function signature for `GetStopDescription` is `lldb::SBThread::GetStopDescription(char *dst_or_null, size_t len)`. To get a description you need to call the function first time to get the buffer size. a second time to get the description. This is little worse from the python size as the signature is `lldb.SBThread.GetStopDescription(int: len) -> list[str]` the user has to pass the max size as possible with no way of checking if it is enough. This patch adds a new api `lldb.SBThread.GetStopDescription(desc: lldb.SBStream()) -> bool` `bool lldb::SBThread::GetStopDescription(lldb::SBStream &description)` which handles this case. Adds new Test case for lua. (cherry picked from commit c46bfed)
|
@swift-ci test |
|
https://ci-external.swift.org/job/apple-llvm-project-pull-request-windows/3290/ It looks like the CI is not configured correctly, Is it using some other way to create the swig bindings ? it then later on says it found python and swig but does not display the swig version found. |
|
@swift-ci test macOS |
|
@swift-ci test macOS windows |
1 similar comment
|
@swift-ci test macOS windows |
|
@swift-ci test windows platform |
|
@swift-ci test macos platform |
|
@swift-ci test windows platform |
the function signature for
GetStopDescriptionislldb::SBThread::GetStopDescription(char *dst_or_null, size_t len). To get a description you need to call the function first time to get the buffer size. a second time to get the description.This is little worse from the python size as the signature is
lldb.SBThread.GetStopDescription(int: len) -> list[str]the user has to pass the max size as possible with no way of checking if it is enough.This patch adds a new api
lldb.SBThread.GetStopDescription(desc: lldb.SBStream()) -> boolbool lldb::SBThread::GetStopDescription(lldb::SBStream &description)which handles this case.Adds new Test case for lua.
(cherry picked from commit c46bfed)