ports/devel/llvm15/files/patch-swig
2023-04-19 05:39:20 +08:00

29 lines
1 KiB
Text

--- lldb/bindings/interface/SBValueList.i.orig 2022-11-29 10:05:58 UTC
+++ lldb/bindings/interface/SBValueList.i
@@ -103,7 +103,6 @@ class SBValueList (public)
GetFirstValueByName (const char* name) const;
%extend {
- %nothreadallow;
std::string lldb::SBValueList::__str__ (){
lldb::SBStream description;
const size_t n = $self->GetSize();
@@ -122,7 +121,6 @@ class SBValueList (public)
--desc_len;
return std::string(desc, desc_len);
}
- %clearnothreadallow;
}
#ifdef SWIGPYTHON
--- lldb/bindings/lua/lua-typemaps.swig.orig 2022-11-29 10:05:58 UTC
+++ lldb/bindings/lua/lua-typemaps.swig
@@ -247,7 +247,7 @@ LLDB_NUMBER_TYPEMAP(enum SWIGTYPE);
// Typemap for file handles (e.g. used in SBDebugger::GetOutputFileHandle)
%typemap(out) lldb::FileSP {
- lldb::FileSP &sp = $1;
+ const lldb::FileSP &sp = $1;
if (sp && sp->IsValid()) {
luaL_Stream *p = (luaL_Stream *)lua_newuserdata(L, sizeof(luaL_Stream));
p->closef = &LLDBSwigLuaCloseFileHandle;