[lldb-dev] new 'import' script by path command

Enrico Granata granata.enrico at gmail.com
Wed Oct 12 03:07:09 PDT 2011

Hi all,

the proposed patch provides an implementation of a new 'import' command for LLDB, based upon Python commands. an example usage is:
(lldb) script import importcmd
(lldb) command script add -f importcmd.pyimport_cmd import
(lldb) import /Users/user/Documents/demo1.py
(lldb) script demo1.test_function(1)
there is an included test case that checks for correctness of this new command by importing some Python script files and using the resulting modules

plus, this fixes a minor issue where the custom Python commands defined for the functionalities/command_python/ test case would not be cleaned up if the test case itself failed

Any feedback on this is most welcome.

- Enrico Granata
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20111012/48809239/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: importcmd_patch.diff
Type: application/octet-stream
Size: 7839 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20111012/48809239/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20111012/48809239/attachment-0001.html>

More information about the lldb-dev mailing list