aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api
diff options
context:
space:
mode:
authorRichard Smith <richard@metafoo.co.uk>2021-01-25 18:02:39 -0800
committerRichard Smith <richard@metafoo.co.uk>2021-01-25 18:05:17 -0800
commit8b1171488575bd0b5ccb23bc1a3d22e2aaccb244 (patch)
tree597fe5b666742a0581397f5be7044734b985f677 /lldb/test/API/python_api
parent4b6d7fdd2079aa793b96a628688e95a55669f70b (diff)
downloadllvm-8b1171488575bd0b5ccb23bc1a3d22e2aaccb244.zip
llvm-8b1171488575bd0b5ccb23bc1a3d22e2aaccb244.tar.gz
llvm-8b1171488575bd0b5ccb23bc1a3d22e2aaccb244.tar.bz2
Revert "Fix SBDebugger::CreateTargetWithFileAndArch to accept LLDB_ARCH_DEFAULT."
Also revert "Follow on to: f05dc40c31d1883b46b8bb60547087db2f4c03e3" After these changes, multiple lldb tests are failing. Calls to CreateTargetWithFileAndArch(None, None) appear to fail after these changes. This reverts commit f05dc40c31d1883b46b8bb60547087db2f4c03e3 and 1fba21778f84f266f7d32153c88e59e1900fbe5b.
Diffstat (limited to 'lldb/test/API/python_api')
-rw-r--r--lldb/test/API/python_api/target/TestTargetAPI.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/lldb/test/API/python_api/target/TestTargetAPI.py b/lldb/test/API/python_api/target/TestTargetAPI.py
index 9501bdb..f058a0a 100644
--- a/lldb/test/API/python_api/target/TestTargetAPI.py
+++ b/lldb/test/API/python_api/target/TestTargetAPI.py
@@ -476,15 +476,3 @@ class TargetAPITestCase(TestBase):
desc2 = get_description(symbol2)
self.assertTrue(desc1 and desc2 and desc1 == desc2,
"The two addresses should resolve to the same symbol")
- def test_default_arch(self):
- """ Test the other two target create methods using LLDB_ARCH_DEFAULT. """
- self.build()
- exe = self.getBuildArtifact("a.out")
- target = self.dbg.CreateTargetWithFileAndArch(exe, lldb.LLDB_ARCH_DEFAULT)
- self.assertTrue(target.IsValid(), "Default arch made a valid target.")
- # This should also work with the target's triple:
- target2 = self.dbg.CreateTargetWithFileAndArch(exe, target.GetTriple())
- self.assertTrue(target2.IsValid(), "Round trip with triple works")
- # And this triple should work for the FileAndTriple API:
- target3 = self.dbg.CreateTargetWithFileAndTargetTriple(exe, target.GetTriple())
- self.assertTrue(target3.IsValid())