diff options
author | Enrico Granata <egranata@apple.com> | 2013-06-10 22:39:08 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2013-06-10 22:39:08 +0000 |
commit | c01dc4af1f574429cbd456032846987046b4eeff (patch) | |
tree | 7154bea0c02b33f5c8c000476e4ea2caf5f3e497 /lldb/scripts/Python/interface | |
parent | 4c648b188423fb82107e40fc187ab676223581c7 (diff) | |
download | bcm5719-llvm-c01dc4af1f574429cbd456032846987046b4eeff.tar.gz bcm5719-llvm-c01dc4af1f574429cbd456032846987046b4eeff.zip |
Adding properties to the SBBreakpoint class
llvm-svn: 183707
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r-- | lldb/scripts/Python/interface/SBBreakpoint.i | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBBreakpoint.i b/lldb/scripts/Python/interface/SBBreakpoint.i index 08a1f9684af..34274dda8b0 100644 --- a/lldb/scripts/Python/interface/SBBreakpoint.i +++ b/lldb/scripts/Python/interface/SBBreakpoint.i @@ -209,6 +209,26 @@ public: static uint32_t GetNumBreakpointLocationsFromEvent (const lldb::SBEvent &event_sp); + + %pythoncode %{ + + __swig_getmethods__["id"] = GetID + if _newclass: id = property(GetID, None, doc='''A read only property that returns the ID of this breakpoint.''') + + __swig_getmethods__["enabled"] = IsEnabled + __swig_setmethods__["enabled"] = SetEnabled + if _newclass: enabled = property(IsEnabled, SetEnabled, doc='''A read/write property that configures whether this breakpoint is enabled or not.''') + + __swig_getmethods__["one_shot"] = IsOneShot + __swig_setmethods__["one_shot"] = SetOneShot + if _newclass: one_shot = property(IsOneShot, SetOneShot, doc='''A read/write property that configures whether this breakpoint is one-shot (deleted when hit) or not.''') + + __swig_getmethods__["num_locations"] = GetNumLocations + if _newclass: num_locations = property(GetNumLocations, None, doc='''A read only property that returns the count of locations of this breakpoint.''') + + %} + + }; } // namespace lldb |