[lldb-dev] Prefered way to identify target device in tests?
Ted Woodward via lldb-dev
lldb-dev at lists.llvm.org
Thu Feb 11 12:15:21 PST 2016
I'm working on getting the tests running with Hexagon, and have a question
about identifying the target architecture.
Hexagon LLVM doesn't use a couple architectures like "x86_64" or "i386",
instead we have many architectures, like "v4", "v5", "v55", "v56", v60", so
using self.getArchitecture() can be problematic. I've got a list of Hexagon
architectures in a global supported_hexagon_versions in lldbtest.py. When I
need to check for Hexagon, should I do something like "self.getArchitecture
in supported_hexagon_versions", or something like this:
self.runCmd("target list")
if "arch=hexagon-*-*," in self.res.GetOutput():
?
Ted
--
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a
Linux Foundation Collaborative Project
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160211/a56693f3/attachment.html>
More information about the lldb-dev
mailing list