You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you looking for the HOST triple? Or the target triple? e.g. lldb is running on a mac, debugging a process on a Linux system. I can see a usefulness to getting the triple for the Linux system. This would be similar to Target::GetArchitecture() and naturally live in SBTarget.
SBDebugger::{Get,Set}DefaultArchitecture exists but it's only useful in specialized circumstances.
Ah, I missed SBTarget::GetTriple() which will give you the target triple. I'd like to better understand the workflow that wants to know the host triple from lldb.
The main problem is that currently there is no way to get the host and/or target current triple and architecture through the SB API. This would be useful for creating a REPL, for example.
Thanks for the link. You can get the current target triple if you have an SBTarget – SBTarget::GetTriple(). You're correct that lldb doesn't have any API to get the host triple right now.
Additional Detail from JIRA
md5: 28fd0e1a01f0f253b5531c37120a311f
Issue Description:
Right now there is no way to get the current host triple or architecture from the SB Python API.
The text was updated successfully, but these errors were encountered: