Fix llvm_unreachable in TestWriteMemory
authorPavel Labath <pavel@labath.sk>
Tue, 2 Apr 2019 08:56:22 +0000 (08:56 +0000)
committerPavel Labath <pavel@labath.sk>
Tue, 2 Apr 2019 08:56:22 +0000 (08:56 +0000)
The test was hitting llvm_unreachable in
Platform::GetSoftwareBreakpointTrapOpcode because it could not figure
out the architecture of the process. Since that is not the purpose of
the test, I change the test to use an explicit
CreateTargetWithFileAndTargetTriple command to specify it.

llvm-svn: 357456

lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestWriteMemory.py

index 812dbf7..465a935 100644 (file)
@@ -14,7 +14,7 @@ class TestWriteMemory(GDBRemoteTestBase):
                 return "OK"
 
         self.server.responder = MyResponder()
-        target = self.dbg.CreateTarget('')
+        target = self.dbg.CreateTargetWithFileAndTargetTriple('', 'x86_64-pc-linux')
         process = self.connect(target)
 
         bp = target.BreakpointCreateByAddress(0x1000)