summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorTodd Fiala <todd.fiala@gmail.com>2016-06-27 23:21:49 +0000
committerTodd Fiala <todd.fiala@gmail.com>2016-06-27 23:21:49 +0000
commit3d2c1e6a7c13536f9481cc844e116510f85f6205 (patch)
treef56f6532a4125e6b1d441cabfa99ccc914ad4b6c /lldb/packages/Python/lldbsuite/test
parent97ca82776d1c0f244ff442fc9d9aeaee194fccbe (diff)
downloadbcm5719-llvm-3d2c1e6a7c13536f9481cc844e116510f85f6205.tar.gz
bcm5719-llvm-3d2c1e6a7c13536f9481cc844e116510f85f6205.zip
fix invalid assumption about the executable module in Target::Install()
Target::Install() was assuming the module at index 0 was the executable. This is often true, but not guaranteed to be the case. The TestInferiorChanged.py test highlighted this when run against iOS. After the binary is replaced in the middle of the test, it becomes the last module in the list. The rest of the Target::Install() logic then clobbers the executable file by using whatever happens to be the first module in the target module list. This change also marks the TestInferiorChanged.py test as a no-debug-info test. llvm-svn: 273960
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/inferior-changed/TestInferiorChanged.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/inferior-changed/TestInferiorChanged.py b/lldb/packages/Python/lldbsuite/test/functionalities/inferior-changed/TestInferiorChanged.py
index 23749160dbd..359846c314f 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/inferior-changed/TestInferiorChanged.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/inferior-changed/TestInferiorChanged.py
@@ -16,6 +16,7 @@ class ChangedInferiorTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
@skipIf(hostoslist=["windows"])
+ @no_debug_info_test
def test_inferior_crashing(self):
"""Test lldb reloads the inferior after it was changed during the session."""
self.build()
OpenPOWER on IntegriCloud