Skip to content

Conversation

@da-viper
Copy link

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)

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)
@da-viper da-viper requested a review from a team as a code owner November 19, 2025 15:38
@da-viper
Copy link
Author

@swift-ci test

@da-viper
Copy link
Author

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 ?

Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) (Required is at least version "4")
Enable SWIG to generate LLDB bindings: FALSE

it then later on says it found python and swig but does not display the swig version found.

Found Python3: T:/PythonAMD64-3.10.1/tools/python.exe (found version "3.10.1") found components: Interpreter Development Development.Module Development.Embed
Found PythonAndSwig: T:/PythonAMD64-3.10.1/tools/libs/python310.lib

@da-viper
Copy link
Author

@swift-ci test macOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants