clayborg added a comment. If you want to run the script from the command line, then it is necessary. If it is run from within LLDB it will just work. I like to have my LLDB python scripts work both ways.
This might be better implemented as a new command that gets installed and can be used within LLDB. See: http://llvm.org/svn/llvm-project/lldb/trunk/examples/python/cmdtemplate.py https://reviews.llvm.org/D36347 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits