brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 1b67d0b Raw
42 lines · plain
1Files in this directory:2 3o .lldbinit:4 5An example lldb init file that imports the utils.py module and adds the6following commands: 'pwd', 'cd', and 'system'.7 8o utils.py:9 10Python module which provides implementation for the 'cd' and 'system' commands.11 12o README:13 14The file you are reading now.15 16================================================================================17The following terminal output shows an interaction with lldb using the .lldbinit18and the utils.py files which are located in my HOME directory.  The lldb init19file imports the utils Python module and adds the 'pwd', 'cd', and 'system'20commands.21 22Johnnys-MacBook-Pro:multiple_threads johnny$ pwd23/Volumes/data/lldb/svn/trunk/test/functionalities/watchpoint/multiple_threads24Johnnys-MacBook-Pro:multiple_threads johnny$ lldb25(lldb) pwd26/Volumes/data/lldb/svn/trunk/test/functionalities/watchpoint/multiple_threads27(lldb) cd ..28Current working directory: /Volumes/data/lldb/svn/trunk/test/functionalities/watchpoint29(lldb) help system30 31Execute the command (a string) in a subshell.32Syntax: system33(lldb) system ls -l34total 035drwxr-xr-x  7 johnny  admin  238 Oct 11 17:24 hello_watchlocation36drwxr-xr-x  7 johnny  admin  238 Oct 11 17:24 hello_watchpoint37drwxr-xr-x  7 johnny  admin  238 Oct 11 17:24 multiple_threads38drwxr-xr-x  7 johnny  admin  238 Oct 11 17:24 watchpoint_commands39 40retcode: 041(lldb) 42