-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Replace ArchSpec::PiecewiseCompare() with Triple::operator==() #82804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
C_SOURCES := main.c | ||
include Makefile.rules | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import lldb | ||
from lldbsuite.test.decorators import * | ||
from lldbsuite.test.lldbtest import * | ||
from lldbsuite.test import lldbutil | ||
|
||
|
||
class TestArm64eAttach(TestBase): | ||
NO_DEBUG_INFO_TESTCASE = True | ||
|
||
# On Darwin systems, arch arm64e means ARMv8.3 with ptrauth ABI used. | ||
@skipIf(archs=no_match(["arm64e"])) | ||
def test(self): | ||
# Skip this test if not running on AArch64 target that supports PAC | ||
if not self.isAArch64PAuth(): | ||
self.skipTest("Target must support pointer authentication.") | ||
self.build() | ||
popen = self.spawnSubprocess(self.getBuildArtifact(), []) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To run arm64e code you need to set a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The bots will already fail at the |
||
error = lldb.SBError() | ||
# This simulates how Xcode attaches to a process by pid/name. | ||
target = self.dbg.CreateTarget("", "arm64", "", True, error) | ||
listener = lldb.SBListener("my.attach.listener") | ||
process = target.AttachToProcessWithID(listener, popen.pid, error) | ||
self.assertSuccess(error) | ||
self.assertTrue(process, PROCESS_IS_VALID) | ||
self.assertEqual(target.GetTriple().split('-')[0], "arm64e", | ||
"target triple is updated correctly") | ||
error = process.Kill() | ||
self.assertSuccess(error) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
int getchar(); | ||
int main() { return getchar(); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you want to build this test for arm64e?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is implicit. If you are running the tests with an arm64e ARCH, the test will run (with that triple).