diff options
| author | Jim Ingham <jingham@apple.com> | 2020-10-15 14:28:06 -0700 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2020-10-15 14:28:44 -0700 |
| commit | 6754caa9bf21a759c4080a797f23e2b7a77a71e1 (patch) | |
| tree | b90c7125609059b262b39fd3b53c3a4657528a4a /lldb/test/API/python_api | |
| parent | a91dd3d37d3f10831e544c5a797b3837b7e5744a (diff) | |
| download | llvm-6754caa9bf21a759c4080a797f23e2b7a77a71e1.zip llvm-6754caa9bf21a759c4080a797f23e2b7a77a71e1.tar.gz llvm-6754caa9bf21a759c4080a797f23e2b7a77a71e1.tar.bz2 | |
Add an SB API to get the SBTarget from an SBBreakpoint
Differential Revision: https://reviews.llvm.org/D89358
Diffstat (limited to 'lldb/test/API/python_api')
| -rw-r--r-- | lldb/test/API/python_api/breakpoint/TestBreakpointAPI.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/test/API/python_api/breakpoint/TestBreakpointAPI.py b/lldb/test/API/python_api/breakpoint/TestBreakpointAPI.py index 1c0c334..80324ee 100644 --- a/lldb/test/API/python_api/breakpoint/TestBreakpointAPI.py +++ b/lldb/test/API/python_api/breakpoint/TestBreakpointAPI.py @@ -66,6 +66,9 @@ class BreakpointAPITestCase(TestBase): location = breakpoint.GetLocationAtIndex(0) self.assertTrue(location.IsValid()) + # Make sure the breakpoint's target is right: + self.assertEqual(target, breakpoint.GetTarget(), "Breakpoint reports its target correctly") + self.assertTrue(self.dbg.DeleteTarget(target)) self.assertFalse(breakpoint.IsValid()) self.assertFalse(location.IsValid()) |
