diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-07-23 17:47:08 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-07-23 17:47:08 +0000 |
commit | 93f505942c8091a3ebbf6f08764635f19dc79095 (patch) | |
tree | 70a82c65c774eab5b060e2a2c39b0996d2c1a1cf /lldb/utils/vim-lldb/python-vim-lldb/plugin.py | |
parent | ea5c94b497cfc43f9ec513f721e03aa5c669249a (diff) | |
download | bcm5719-llvm-93f505942c8091a3ebbf6f08764635f19dc79095.tar.gz bcm5719-llvm-93f505942c8091a3ebbf6f08764635f19dc79095.zip |
[Utils] Add back utils directory
Due to a bug my earlier commit removed the whole utils directory:
https://reviews.llvm.org/D65123
llvm-svn: 366830
Diffstat (limited to 'lldb/utils/vim-lldb/python-vim-lldb/plugin.py')
-rw-r--r-- | lldb/utils/vim-lldb/python-vim-lldb/plugin.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lldb/utils/vim-lldb/python-vim-lldb/plugin.py b/lldb/utils/vim-lldb/python-vim-lldb/plugin.py new file mode 100644 index 00000000000..c59546c745c --- /dev/null +++ b/lldb/utils/vim-lldb/python-vim-lldb/plugin.py @@ -0,0 +1,16 @@ + +# Try to import all dependencies, catch and handle the error gracefully if +# it fails. + +import import_lldb + +try: + import lldb + import vim +except ImportError: + sys.stderr.write( + "Unable to load vim/lldb module. Check lldb is on the path is available (or LLDB is set) and that script is invoked inside Vim with :pyfile") + pass +else: + # Everthing went well, so use import to start the plugin controller + from lldb_controller import * |