diff options
author | Greg Clayton <gclayton@apple.com> | 2013-07-12 20:08:00 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-07-12 20:08:00 +0000 |
commit | e110ad8fff75e1294b83fc560405ef172297a66a (patch) | |
tree | b9275930ede657f2ce51d38d6c6ecbdfd9c76f05 /lldb/examples | |
parent | 687d94571c21bd77ed10d35061db3e61b926f56c (diff) | |
download | bcm5719-llvm-e110ad8fff75e1294b83fc560405ef172297a66a.tar.gz bcm5719-llvm-e110ad8fff75e1294b83fc560405ef172297a66a.zip |
Enabled the "--debug" option functionality that will SIGSTOP the current process allowing a debugger to attach.
llvm-svn: 186194
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 |