[Lldb-commits] [PATCH] D69793: Bundle libedit-compatible readline replacement
serge via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Nov 5 05:23:53 PST 2019
serge-sans-paille added a comment.
In D69793#1733672 <https://reviews.llvm.org/D69793#1733672>, @labath wrote:
> > 1. use PyMem_RawMalloc instead of PyMem_Malloc, as expected by PyOS_Readline (prevents to segfault upon exit of interactive session)
>
> It looks like this is failing on python2, because it has no RawMalloc function https://docs.python.org/2.7/c-api/memory.html. I guess this bit should be `#ifdef PY2` ?
Should be fixed by 590498829d8c0d4f4f673569949fa3850485c9c, at least this one make it work for both py2 and py3 on my laptop.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69793/new/
https://reviews.llvm.org/D69793
More information about the lldb-commits
mailing list