diff options
author | Davide Italiano <davide@freebsd.org> | 2018-09-10 23:09:09 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2018-09-10 23:09:09 +0000 |
commit | ae3f793e9e19ca36192a8161c69dee32c037e7a8 (patch) | |
tree | 58406cdcfe976e0ac6bade211c08fca409864bea /lldb/packages/Python/lldbsuite/test | |
parent | b69ce1fcd0878a51d9fb6d24a5ac9dcee30ade1e (diff) | |
download | bcm5719-llvm-ae3f793e9e19ca36192a8161c69dee32c037e7a8.tar.gz bcm5719-llvm-ae3f793e9e19ca36192a8161c69dee32c037e7a8.zip |
Rollback "Fix raw address breakpoints not resolving".
It broke a bunch of bots. Ted confirmed, but can't revert for
now so I'm reverting on his behalf.
llvm-svn: 341878
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/address_breakpoints/TestAddressBreakpoints.py | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/address_breakpoints/TestAddressBreakpoints.py b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/address_breakpoints/TestAddressBreakpoints.py index 5d778023748..46191d85296 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/address_breakpoints/TestAddressBreakpoints.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/address_breakpoints/TestAddressBreakpoints.py @@ -97,40 +97,3 @@ class AddressBreakpointTestCase(TestBase): # The hit count for the breakpoint should now be 2. self.assertTrue(breakpoint.GetHitCount() == 2) - - - - def test_address_breakpoint_set_before_launch(self): - """Test that an address bp set before the process is launched works correctly.""" - self.build() - - exe = self.getBuildArtifact("a.out") - - # Create a target by the debugger. - target = self.dbg.CreateTarget(exe) - self.assertTrue(target, VALID_TARGET) - - # get the address of the symbol "main" - sc_list = target.FindSymbols("main", lldb.eSymbolTypeCode) - symbol = sc_list.GetContextAtIndex(0).GetSymbol() - address = symbol.GetStartAddress().GetFileAddress() - - # BreakpointCreateBySBAddress will resolve the address, causing this - # test to always pass, so use runCmd - self.runCmd("break set -a " + str(address)) - - # Disable ASLR. This will allow us to actually test (on platforms that support this flag) - # that the breakpoint was able to track the module. - - launch_info = lldb.SBLaunchInfo(None) - flags = launch_info.GetLaunchFlags() - flags &= ~lldb.eLaunchFlagDisableASLR - launch_info.SetLaunchFlags(flags) - - error = lldb.SBError() - - process = target.Launch(launch_info, error) - self.assertTrue(process, PROCESS_IS_VALID) - self.expect("process status", STOPPED_DUE_TO_BREAKPOINT, - substrs=["stop reason = breakpoint 1.1"]) - |