[Lldb-commits] [PATCH] D82491: [Apple Silicon] Initial support for Rosetta
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 24 13:01:47 PDT 2020
JDevlieghere added inline comments.
================
Comment at: lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp:3444
+ size_t bufsize = sizeof(processInfo);
+ if (sysctl(mib, (unsigned)(sizeof(mib)/sizeof(int)), &processInfo,
+ &bufsize, NULL, 0) == 0 && bufsize > 0) {
----------------
The `sysctl` call seems like something that would fit into host, we already have a bunch of those in `Host.mm`. Should we create a function there that returns whether a given pid runs under Rosetta?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82491/new/
https://reviews.llvm.org/D82491
More information about the lldb-commits
mailing list