diff options
Diffstat (limited to 'lldb/scripts/Python')
-rw-r--r-- | lldb/scripts/Python/interface/SBFrame.i | 19 | ||||
-rw-r--r-- | lldb/scripts/Python/interface/SBTarget.i | 9 | ||||
-rw-r--r-- | lldb/scripts/Python/interface/SBValue.i | 8 | ||||
-rw-r--r-- | lldb/scripts/Python/interface/SBWatchpoint.i | 11 | ||||
-rw-r--r-- | lldb/scripts/Python/modify-python-lldb.py | 6 |
5 files changed, 20 insertions, 33 deletions
diff --git a/lldb/scripts/Python/interface/SBFrame.i b/lldb/scripts/Python/interface/SBFrame.i index 40d65725405..28526ab7478 100644 --- a/lldb/scripts/Python/interface/SBFrame.i +++ b/lldb/scripts/Python/interface/SBFrame.i @@ -215,25 +215,6 @@ public: lldb::SBValue FindValue (const char *name, ValueType value_type, lldb::DynamicValueType use_dynamic); - %feature("docstring", " - /// Find and watch a variable using the frame as the scope. - /// It returns an SBValue, similar to FindValue() method, if find-and-watch - /// operation succeeds. Otherwise, an invalid SBValue is returned. - /// You can use LLDB_WATCH_TYPE_READ | LLDB_WATCH_TYPE_WRITE for 'rw' watch. - ") WatchValue; - lldb::SBValue - WatchValue (const char *name, ValueType value_type, uint32_t watch_type); - - %feature("docstring", " - /// Find and watch the location pointed to by a variable using the frame as - /// the scope. - /// It returns an SBValue, similar to FindValue() method, if find-and-watch - /// operation succeeds. Otherwise, an invalid SBValue is returned. - /// You can use LLDB_WATCH_TYPE_READ | LLDB_WATCH_TYPE_WRITE for 'rw' watch. - ") WatchLocation; - lldb::SBValue - WatchLocation (const char *name, ValueType value_type, uint32_t watch_type, size_t size); - bool GetDescription (lldb::SBStream &description); diff --git a/lldb/scripts/Python/interface/SBTarget.i b/lldb/scripts/Python/interface/SBTarget.i index 9c628a621ff..d462ed91b18 100644 --- a/lldb/scripts/Python/interface/SBTarget.i +++ b/lldb/scripts/Python/interface/SBTarget.i @@ -12,8 +12,7 @@ namespace lldb { %feature("docstring", "Represents the target program running under the debugger. -SBTarget supports module, breakpoint, and watchpoint_location iterations. For -example, +SBTarget supports module, breakpoint, and watchpoint iterations. For example, for m in target.module_iter(): print m @@ -39,14 +38,14 @@ SBBreakpoint: id = 2, file ='main.cpp', line = 85, locations = 1 and, - for wp_loc in target.watchpoint_location_iter(): + for wp_loc in target.watchpoint_iter(): print wp_loc produces: -WatchpointLocation 1: addr = 0x1034ca048 size = 4 state = enabled type = rw +Watchpoint 1: addr = 0x1034ca048 size = 4 state = enabled type = rw declare @ '/Volumes/data/lldb/svn/trunk/test/python_api/watchpoint/main.c:12' - hw_index = 0 hit_count = 2 ignore_count = 0 callback = 0x0 baton = 0x0" + hw_index = 0 hit_count = 2 ignore_count = 0" ) SBTarget; class SBTarget { diff --git a/lldb/scripts/Python/interface/SBValue.i b/lldb/scripts/Python/interface/SBValue.i index 439e0abb7f7..39a92c6503e 100644 --- a/lldb/scripts/Python/interface/SBValue.i +++ b/lldb/scripts/Python/interface/SBValue.i @@ -278,9 +278,17 @@ public: lldb::SBFrame GetFrame(); + %feature("docstring", " + /// Find and watch a variable. + /// It returns an SBWatchpoint, which may be invalid. + ") Watch; lldb::SBWatchpoint Watch (bool resolve_location, bool read, bool write); + %feature("docstring", " + /// Find and watch the location pointed to by a variable. + /// It returns an SBWatchpoint, which may be invalid. + ") WatchPointee; lldb::SBWatchpoint WatchPointee (bool resolve_location, bool read, bool write); diff --git a/lldb/scripts/Python/interface/SBWatchpoint.i b/lldb/scripts/Python/interface/SBWatchpoint.i index 5ddba459aaa..58a15e7d8d5 100644 --- a/lldb/scripts/Python/interface/SBWatchpoint.i +++ b/lldb/scripts/Python/interface/SBWatchpoint.i @@ -10,14 +10,13 @@ namespace lldb { %feature("docstring", -"Represents an instance of watchpoint location for a specific target program. +"Represents an instance of watchpoint for a specific target program. -A watchpoint location is determined by the address and the byte size that -resulted in this particular instantiation. Each watchpoint location has its -settable options. +A watchpoint is determined by the address and the byte size that resulted in +this particular instantiation. Each watchpoint has its settable options. -See also SBTarget.watchpoint_location_iter() for for example usage of iterating -through the watchpoint locations of the target." +See also SBTarget.watchpoint_iter() for for example usage of iterating through +the watchpoints of the target." ) SBWatchpoint; class SBWatchpoint { diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py index 15f42a46009..06be3037790 100644 --- a/lldb/scripts/Python/modify-python-lldb.py +++ b/lldb/scripts/Python/modify-python-lldb.py @@ -173,7 +173,7 @@ linked_list_iter_def = ''' iter_def = " def __iter__(self): return lldb_iter(self, '%s', '%s')" module_iter = " def module_iter(self): return lldb_iter(self, '%s', '%s')" breakpoint_iter = " def breakpoint_iter(self): return lldb_iter(self, '%s', '%s')" -watchpoint_location_iter = " def watchpoint_location_iter(self): return lldb_iter(self, '%s', '%s')" +watchpoint_iter = " def watchpoint_iter(self): return lldb_iter(self, '%s', '%s')" section_iter = " def section_iter(self): return lldb_iter(self, '%s', '%s')" # Called to implement the built-in function len(). @@ -222,7 +222,7 @@ d = { 'SBBreakpoint': ('GetNumLocations', 'GetLocationAtIndex'), # SBTarget needs special processing, see below. 'SBTarget': {'module': ('GetNumModules', 'GetModuleAtIndex'), 'breakpoint': ('GetNumBreakpoints', 'GetBreakpointAtIndex'), - 'watchpoint_location': ('GetNumWatchpointLocations', 'GetWatchpointLocationAtIndex') + 'watchpoint': ('GetNumWatchpoints', 'GetWatchpointAtIndex') }, # SBModule has an additional section_iter(), see below. @@ -369,7 +369,7 @@ for line in content.splitlines(): if cls == "SBTarget": new_content.add_line(module_iter % (d[cls]['module'])) new_content.add_line(breakpoint_iter % (d[cls]['breakpoint'])) - new_content.add_line(watchpoint_location_iter % (d[cls]['watchpoint_location'])) + new_content.add_line(watchpoint_iter % (d[cls]['watchpoint'])) else: if (state & DEFINING_ITERATOR): new_content.add_line(iter_def % d[cls]) |