summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/breakpoint
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-03-01 10:08:48 +0000
committerPavel Labath <labath@google.com>2017-03-01 10:08:48 +0000
commitc5789434ff0692d261c858664283d9231228bec7 (patch)
treec94887ffc12889959cfe5333953af0238e933240 /lldb/packages/Python/lldbsuite/test/python_api/breakpoint
parent197b65c7b8238a095b1ec4875b1ceca8bff3ce9a (diff)
downloadbcm5719-llvm-c5789434ff0692d261c858664283d9231228bec7.tar.gz
bcm5719-llvm-c5789434ff0692d261c858664283d9231228bec7.zip
Switch SBBreakpointLocation to use a weak_ptr
llvm-svn: 296594
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/breakpoint')
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py b/lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py
index a5bf5db1736..4bd4781c7ef 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py
@@ -69,6 +69,9 @@ class BreakpointAPITestCase(TestBase):
self.assertTrue(breakpoint and
breakpoint.GetNumLocations() == 1,
VALID_BREAKPOINT)
+ location = breakpoint.GetLocationAtIndex(0)
+ self.assertTrue(location.IsValid())
self.assertTrue(self.dbg.DeleteTarget(target))
self.assertFalse(breakpoint.IsValid())
+ self.assertFalse(location.IsValid())
OpenPOWER on IntegriCloud