diff options
author | Pavel Labath <pavel@labath.sk> | 2019-04-02 08:56:22 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-04-02 08:56:22 +0000 |
commit | 821263faa56af1ac2e0466d1c41df48018963bcb (patch) | |
tree | 7e4c77ff5ad0408c3eec104603f8060524642a64 /lldb/packages/Python | |
parent | 1c4ee1601260d3dfc73c7c69b2f02fc4888a5e6e (diff) | |
download | bcm5719-llvm-821263faa56af1ac2e0466d1c41df48018963bcb.tar.gz bcm5719-llvm-821263faa56af1ac2e0466d1c41df48018963bcb.zip |
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
Diffstat (limited to 'lldb/packages/Python')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestWriteMemory.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |