[lldb-dev] new 'import' script by path command
johnny.chen at apple.com
Wed Oct 12 11:00:05 PDT 2011
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?
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.
> - Enrico Granata
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-dev