This website requires JavaScript.
Explore
Help
Sign In
encounter
/
llvm-project
Watch
0
Star
0
Fork
0
You've already forked llvm-project
mirror of
https://github.com/encounter/llvm-project.git
synced
2026-03-30 11:27:19 -07:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
1fbe1a8ba7672cbccd95c8a76437ef8d2c6249a2
llvm-project
/
lldb
/
test
/
functionalities
/
command_script
/
import
/
foo
/
foo.py
T
4 lines
100 B
Python
Raw
Normal View
History
Unescape
Escape
this patch introduces a new command script import command which takes as input a filename for a Python script and imports the module contained in that file. the containing directory is added to the Python path such that dependencies are honored. also, the module may contain an __lldb_init_module(debugger,dict) function, which gets called after importing, and which can somehow initialize the module's interaction with lldb
2011-10-17 21:45:27 +00:00
def
foo_function
(
debugger
,
args
,
result
,
dict
)
:
Fixing Python commands test cases to work even after removing Printf
2013-03-30 00:53:13 +00:00
print
>>
result
,
(
"
foo says
"
+
args
)
this patch introduces a new command script import command which takes as input a filename for a Python script and imports the module contained in that file. the containing directory is added to the Python path such that dependencies are honored. also, the module may contain an __lldb_init_module(debugger,dict) function, which gets called after importing, and which can somehow initialize the module's interaction with lldb
2011-10-17 21:45:27 +00:00
return
None
Reference in New Issue
Copy Permalink