JDevlieghere added a comment.

In D93926#2481929 <https://reviews.llvm.org/D93926#2481929>, @labath wrote:

> In D93926#2479749 <https://reviews.llvm.org/D93926#2479749>, @JDevlieghere 
> wrote:
>
>> Your argument is correct because the interactive script interpreter always 
>> belongs to a single debugger.
>
> I'm not sure that even this is true (for python, anyway). IIUC all 
> SBDebuggers share the same python interpreter (because python does not allow 
> the creation of completely independent python contexts). We do some trickery 
> to make it it appear as if these were independent, but I am not sure the 
> trickery extends to the `lldb` module...

It depends on your definition of Python interpreter. The `Debugger` owns the 
`ScriptInterpreterSP` which is what would decide which debugger to put in the 
convenience variable, but you're right that they all share the same "python 
instance" under the hood.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93926/new/

https://reviews.llvm.org/D93926

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to