diff options
author | Jim Ingham <jingham@apple.com> | 2018-01-12 03:03:23 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2018-01-12 03:03:23 +0000 |
commit | 5ec7cd7227dacc0b386e4dc69e1d7ce54ef64572 (patch) | |
tree | 2fa72360f879e8631950111b41d6c099ece8c221 /lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py | |
parent | a5bdee2414f60d9751e84b2c19e07aec93b7589f (diff) | |
download | bcm5719-llvm-5ec7cd7227dacc0b386e4dc69e1d7ce54ef64572.tar.gz bcm5719-llvm-5ec7cd7227dacc0b386e4dc69e1d7ce54ef64572.zip |
Fix Breakpoint::RemoveInvalidLocations to fix the exec testcase.
RemoveInvalidLocations was clearing out the m_locations in the
breakpoint by hand, and it wasn't also clearing the locations from
the address->location map, which confused us when we went to update
breakpoint locations.
I also made Breakpoint::ModulesChanged check the Location's Section
to make sure it hadn't been deleted. This shouldn't strictly be necessary,
but if the DynamicLoaderPlugin doesn't do it's job right (I'm looking at
you new Darwin DynamicLoader...) then it can end up leaving stale locations
on rerun. It doesn't hurt to clean them up here as a backstop.
<rdar://problem/36134350>
llvm-svn: 322348
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py b/lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py index 1df94f2d521..f1c151920a0 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py @@ -29,14 +29,12 @@ class ExecTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) @skipUnlessDarwin - @expectedFailureAll(oslist=['macosx'], bugnumber="rdar://36134350") # when building with cmake on green gragon or on ci.swift.org, this test fails. @expectedFailureAll(archs=['i386'], bugnumber="rdar://28656532") @expectedFailureAll(oslist=["ios", "tvos", "watchos", "bridgeos"], bugnumber="rdar://problem/34559552") # this exec test has problems on ios systems def test_hitting_exec (self): self.do_test(False) @skipUnlessDarwin - @expectedFailureAll(oslist=['macosx'], bugnumber="rdar://36134350") # when building with cmake on green gragon or on ci.swift.org, this test fails. @expectedFailureAll(archs=['i386'], bugnumber="rdar://28656532") @expectedFailureAll(oslist=["ios", "tvos", "watchos", "bridgeos"], bugnumber="rdar://problem/34559552") # this exec test has problems on ios systems def test_skipping_exec (self): @@ -74,7 +72,7 @@ class ExecTestCase(TestBase): self.assertTrue(process, PROCESS_IS_VALID) if skip_exec: - self.debugger.HandleCommand("settings set target.process.stop-on-exec false") + self.dbg.HandleCommand("settings set target.process.stop-on-exec false") def cleanup(): self.runCmd("settings set target.process.stop-on-exec false", check=False) |