================
@@ -419,15 +421,17 @@ def __init__(self, thread, args):
self.register_ctx = {}
self.variables = []
- if (
- isinstance(thread, ScriptedThread)
- or isinstance(thread, lldb.SBThread)
- and thread.IsValid()
+ if isinstance(thread, ScriptedThread) or (
+ isinstance(thread, lldb.SBThread) and thread.IsValid()
):
- self.target = thread.target
self.process = thread.process
+ self.target = self.process.target
+ triple = self.target.triple
+ if triple:
+ self.arch = triple.split("-")[0]
----------------
medismailben wrote:
I agree
https://github.com/llvm/llvm-project/pull/161870
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits