diff options
| author | Bill Wendling <isanbard@gmail.com> | 2012-04-18 21:39:23 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2012-04-18 21:39:23 +0000 |
| commit | 392e4fbdd9b152efff4c051286f6b2c21270c902 (patch) | |
| tree | 4ac339be2c4c7c596f068b59d5e512b157c7b433 /lldb/examples/customization/import-python/README | |
| parent | eb1c2bdc1f55fbc5d1e7bb86e9f0e038b0f5adb7 (diff) | |
Creating release_31 branchllvmorg-3.1.0-rc1
llvm-svn: 155059
llvm-svn: 155053
llvm-svn: 155051
Diffstat (limited to 'lldb/examples/customization/import-python/README')
| -rw-r--r-- | lldb/examples/customization/import-python/README | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/lldb/examples/customization/import-python/README b/lldb/examples/customization/import-python/README deleted file mode 100644 index 9122f8f46dcf..000000000000 --- a/lldb/examples/customization/import-python/README +++ /dev/null @@ -1,40 +0,0 @@ -Files in this directory: - -o importcmd.py: - -Python module which provides implementation for the 'import' command. - -o README: - -The file you are reading now. - -================================================================================ -The import command defined by importcmd.py can be used in LLDB to load a Python -module given its full pathname. -The command works by extending Python's sys.path lookup to include the path to -the module to be imported when required, and then going through the language -ordinary 'import' mechanism. In this respect, modules imported from LLDB command -line should not be distinguishable from those imported using the script interpreter. -The following terminal output shows an interaction with lldb using this new command. - -Enrico-Granatas-MacBook-Pro:Debug enricogranata$ ./lldb -(lldb) script import importcmd -(lldb) command script add import -f importcmd.pyimport_cmd -(lldb) import ../demo.py -(lldb) script demo.test_function('hello world') -I am a Python function that says hello world -(lldb) quit -Enrico-Granatas-MacBook-Pro:Debug enricogranata$ - -Of course, the commands to import the importcmd.py module and to define the import -command, can be included in the .lldbinit file to make this feature available at -debugger startup - -WARNING: The import command defined by importcmd.py is now obsolete -In TOT LLDB, you can say: -(lldb) command script import ../demo.py -(lldb) script demo.test_function('hello world') -I am a Python function that says hello world -(lldb) quit - -using the native "command script import" command, which offers a superset of what the import command provided by importcmd.py does |
