From 821263faa56af1ac2e0466d1c41df48018963bcb Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Tue, 2 Apr 2019 08:56:22 +0000 Subject: Fix llvm_unreachable in TestWriteMemory 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 --- .../lldbsuite/test/functionalities/gdb_remote_client/TestWriteMemory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client') diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestWriteMemory.py b/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestWriteMemory.py index 812dbf7aa8e..465a9352ad5 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestWriteMemory.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestWriteMemory.py @@ -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) -- cgit v1.2.3