summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-10-03 21:48:40 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-10-03 21:48:40 +0000
commitfdce6dc19d027554bac1053543ff8293243630ad (patch)
treec6b6281767da3d6af2a9a1658b124f06eed7c47f /lldb/scripts/Python
parentf66daac2f582eec64df9894899753d0d4cbfb2db (diff)
downloadbcm5719-llvm-fdce6dc19d027554bac1053543ff8293243630ad.tar.gz
bcm5719-llvm-fdce6dc19d027554bac1053543ff8293243630ad.zip
Add comment markers for in_range(symbol, section).
llvm-svn: 141033
Diffstat (limited to 'lldb/scripts/Python')
-rw-r--r--lldb/scripts/Python/modify-python-lldb.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py
index c5cbab05de1..645d7de0d6b 100644
--- a/lldb/scripts/Python/modify-python-lldb.py
+++ b/lldb/scripts/Python/modify-python-lldb.py
@@ -62,6 +62,9 @@ one_liner_docstring_pattern = re.compile('^(%s|%s)""".*"""$' % (TWO_SPACES, EIGH
# lldb_helpers and lldb_iter() should appear before our first SB* class definition.
#
lldb_helpers = '''
+# ==================================
+# Helper function for SBModule class
+# ==================================
def in_range(symbol, section):
"""Test whether a symbol is within the range of a section."""
symSA = symbol.GetStartAddress().GetFileAddress()
OpenPOWER on IntegriCloud