summaryrefslogtreecommitdiff
path: root/devel/llvm15/files/patch-swig
blob: 9e36f27b1f7a3bf995a56956484dd07fa9f0765e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- 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;