Skip to content

Commit b969aef

Browse files
committed
[lldb] Add Python properties to SBBreakpointr(Location)
1 parent 459de73 commit b969aef

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

lldb/bindings/interface/SBBreakpointExtensions.i

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ STRING_EXTENSION_OUTSIDE(SBBreakpoint)
5050
enabled = property(IsEnabled, SetEnabled, doc='''A read/write property that configures whether this breakpoint is enabled or not.''')
5151
one_shot = property(IsOneShot, SetOneShot, doc='''A read/write property that configures whether this breakpoint is one-shot (deleted when hit) or not.''')
5252
num_locations = property(GetNumLocations, None, doc='''A read only property that returns the count of locations of this breakpoint.''')
53+
auto_continue = property(GetAutoContinue, SetAutoContinue, doc='A read/write property that configures the auto-continue property of this breakpoint.')
54+
condition = property(GetCondition, SetCondition, doc='A read/write property that configures the condition of this breakpoint.')
55+
hit_count = property(GetHitCount, doc='A read only property that returns the hit count of this breakpoint.')
56+
ignore_count = property(GetIgnoreCount, SetIgnoreCount, doc='A read/write property that configures the ignore count of this breakpoint.')
57+
queue_name = property(GetQueueName, SetQueueName, doc='A read/write property that configures the queue name criteria of this breakpoint.')
58+
target = property(GetTarget, doc='A read only property that returns the target of this breakpoint.')
59+
thread_id = property(GetThreadID, SetThreadID, doc='A read/write property that configures the thread id criteria of this breakpoint.')
60+
thread_index = property(GetThreadIndex, SetThreadIndex, doc='A read/write property that configures the thread index criteria of this breakpoint.')
61+
thread_name = property(GetThreadName, SetThreadName, doc='A read/write property that configures the thread name criteria of this breakpoint.')
5362
%}
5463
#endif
5564
}

lldb/bindings/interface/SBBreakpointLocationExtensions.i

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBBreakpointLocation, lldb::eDescriptionLevelFull
77
# our own equality operator here
88
def __eq__(self, other):
99
return not self.__ne__(other)
10+
11+
addr = property(GetAddress, doc='A read only property that returns the address of this breakpoint location.')
12+
auto_continue = property(GetAutoContinue, SetAutoContinue, doc='A read/write property that configures the auto-continue property of this breakpoint location.')
13+
breakpoint = property(GetBreakpoint, doc='A read only property that returns the parent breakpoint of this breakpoint location.')
14+
condition = property(GetCondition, SetCondition, doc='A read/write property that configures the condition of this breakpoint location.')
15+
hit_count = property(GetHitCount, doc='A read only property that returns the hit count of this breakpoint location.')
16+
id = property(GetID, doc='A read only property that returns the id of this breakpoint location.')
17+
ignore_count = property(GetIgnoreCount, SetIgnoreCount, doc='A read/write property that configures the ignore count of this breakpoint location.')
18+
load_addr = property(GetLoadAddress, doc='A read only property that returns the load address of this breakpoint location.')
19+
queue_name = property(GetQueueName, SetQueueName, doc='A read/write property that configures the queue name criteria of this breakpoint location.')
20+
thread_id = property(GetThreadID, SetThreadID, doc='A read/write property that configures the thread id criteria of this breakpoint location.')
21+
thread_index = property(GetThreadIndex, SetThreadIndex, doc='A read/write property that configures the thread index criteria of this breakpoint location.')
22+
thread_name = property(GetThreadName, SetThreadName, doc='A read/write property that configures the thread name criteria of this breakpoint location.')
1023
%}
1124
#endif
1225
}

0 commit comments

Comments
 (0)