diff options
Diffstat (limited to 'lldb/examples')
-rwxr-xr-x | lldb/examples/python/types.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/examples/python/types.py b/lldb/examples/python/types.py index d16cad0c823..11f89401143 100755 --- a/lldb/examples/python/types.py +++ b/lldb/examples/python/types.py @@ -13,6 +13,7 @@ import commands import platform import os import re +import signal import sys try: @@ -227,6 +228,10 @@ if __name__ == '__main__': # print "error: option parsing failed" # sys.exit(1) + if options.debug: + print "Waiting for debugger to attach to process %d" % os.getpid() + os.kill(os.getpid(), signal.SIGSTOP) + for path in args: # in a command - the lldb.* convenience variables are not to be used # and their values (if any) are undefined |