[all-commits] [llvm/llvm-project] c46bfe: [lldb] Add alternative SBThread::GetStopDescriptio...
Ebuka Ezike via All-commits
all-commits at lists.llvm.org
Thu Oct 30 14:44:16 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c46bfed1a484d30cd251a9a225649d74e3bf0af5
https://github.com/llvm/llvm-project/commit/c46bfed1a484d30cd251a9a225649d74e3bf0af5
Author: Ebuka Ezike <yerimyah1 at gmail.com>
Date: 2025-10-30 (Thu, 30 Oct 2025)
Changed paths:
M lldb/bindings/lua/lua-typemaps.swig
M lldb/bindings/python/python-typemaps.swig
M lldb/include/lldb/API/SBThread.h
M lldb/source/API/SBThread.cpp
A lldb/test/API/lua_api/TestThreadAPI.lua
M lldb/test/API/python_api/default-constructor/sb_thread.py
M lldb/test/API/python_api/thread/TestThreadAPI.py
Log Message:
-----------
[lldb] Add alternative SBThread::GetStopDescription (#165379)
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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list