diff options
author | Enrico Granata <egranata@apple.com> | 2013-05-02 23:57:33 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2013-05-02 23:57:33 +0000 |
commit | bfa9fb134bd951b4b6fff94d0df07f5bb277fd21 (patch) | |
tree | da53cd3e077a3e9f5b906d74c0c67e7033333e74 /clang/lib/AST/Stmt.cpp | |
parent | 48bd5fddf3da126b5852d84149bd22728bd38f76 (diff) | |
download | bcm5719-llvm-bfa9fb134bd951b4b6fff94d0df07f5bb277fd21.tar.gz bcm5719-llvm-bfa9fb134bd951b4b6fff94d0df07f5bb277fd21.zip |
<rdar://problem/11558812>
Allow command script import to load packages.
e.g.:
egranata$ ./lldb
(lldb) command script import lldb.macosx.crashlog
"crashlog" and "save_crashlog" command installed, use the "--help" option for detailed help
"malloc_info", "ptr_refs", "cstr_refs", and "objc_refs" commands have been installed, use the "--help" options on these commands for detailed help.
The "unwind-diagnose" command has been installed, type "help unwind-diagnose" for detailed help.
(lldb)
./lldb
(lldb) command script import theFoo
I am happy
(lldb) fbc
àèìòù
(lldb)
egranata$ ls theFoo/
__init__.py theBar.py
egranata$ cat theFoo/__init__.py
import lldb
import theBar
def __lldb_init_module(debugger, internal_dict):
print "I am happy"
debugger.HandleCommand("command script add -f theFoo.theBar.theCommand fbc")
return None
egranata$ cat theFoo/theBar.py
#encoding=utf-8
def theCommand(debugger, command, result, internal_dict):
result.PutCString(u"àèìòù")
return None
llvm-svn: 180975
Diffstat (limited to 'clang/lib/AST/Stmt.cpp')
0 files changed, 0 insertions, 0 deletions