summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-09-30 00:49:02 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-09-30 00:49:02 +0000
commit97b5083cd69518be8c3374c9d8d28475bb9293a3 (patch)
tree4102e9c1e17fd2b5cdacc325b392227a5b132a84 /lldb/scripts/Python
parent1887fce18458977fd19d672f3e8601297ee6493c (diff)
downloadbcm5719-llvm-97b5083cd69518be8c3374c9d8d28475bb9293a3.tar.gz
bcm5719-llvm-97b5083cd69518be8c3374c9d8d28475bb9293a3.zip
Add docstring to in_range() function residing in the lldb module.
llvm-svn: 140833
Diffstat (limited to 'lldb/scripts/Python')
-rw-r--r--lldb/scripts/Python/modify-python-lldb.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py
index 95f68a339b6..c5cbab05de1 100644
--- a/lldb/scripts/Python/modify-python-lldb.py
+++ b/lldb/scripts/Python/modify-python-lldb.py
@@ -63,6 +63,7 @@ one_liner_docstring_pattern = re.compile('^(%s|%s)""".*"""$' % (TWO_SPACES, EIGH
#
lldb_helpers = '''
def in_range(symbol, section):
+ """Test whether a symbol is within the range of a section."""
symSA = symbol.GetStartAddress().GetFileAddress()
symEA = symbol.GetEndAddress().GetFileAddress()
secSA = section.GetFileAddress()
OpenPOWER on IntegriCloud