mirror of
https://github.com/intel/llvm.git
synced 2026-02-06 15:18:53 +08:00
If you have a Python module foo, in order to use its contained objects in LLDB you do not need to use 'from foo import *'. You can use 'import foo', and then refer to items in foo as 'foo.bar', and LLDB will know how to resolve bar as a member of foo. Accordingly, GNU libstdc++ formatters have been moved from the global namespace to gnu_libstdcpp and a few test cases are also updated to reflect the new convention. Python docs suggest using a plain 'import' en lieu of 'from-import'. llvm-svn: 138244
7 lines
293 B
Plaintext
7 lines
293 B
Plaintext
script import sys, os
|
|
script sys.path.append(os.path.join(os.getcwd(), os.pardir))
|
|
script import welcome
|
|
command script add welcome --function welcome.welcome_impl
|
|
command script add targetname --function welcome.target_name_impl
|
|
command script add longwait --function welcome.print_wait_impl
|