[lldb-dev] new 'import' script by path command
Johnny Chen
johnny.chen at apple.com
Wed Oct 12 11:00:05 PDT 2011
Hi Enrico,
I checked in the cleanup patch for TestCommanPython.py.
As for the 'import' command, can you rework the patch to rely on os.sep instead of '/'
as the pathname components separator?
Thanks.
On Oct 12, 2011, at 3:07 AM, Enrico Granata wrote:
> 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.
>
> Thanks,
> - Enrico Granata
> <importcmd_patch.diff>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20111012/e9caf963/attachment.html>
More information about the lldb-dev
mailing list