[Apple Silicon] Initial support for Rosetta
authorDavide Italiano <ditaliano@apple.com>
Wed, 24 Jun 2020 19:18:29 +0000 (12:18 -0700)
committerDavide Italiano <ditaliano@apple.com>
Wed, 24 Jun 2020 19:19:21 +0000 (12:19 -0700)
commitfd19ddb8f2a2b082f492fc59f7f360adf3495701
tree6ad28fe5a20b8f53e236f465825567b6302dd2df
parent35bb9bfbb099eb78dbed8f96d7cd7f5506d6584f
[Apple Silicon] Initial support for Rosetta

Translated processes talk with a different debugserver, shipped with
macOS 11. This patch detects whether a process is translated and
attaches to the correct debugserver implementation.
It's the first patch of a series. Tested on the lldb test suite.

Differential Revision:  https://reviews.llvm.org/D82491
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp