• Home
  • History
  • Annotate
  • only in /external/lldb/examples/customization/pwd-cd-and-system/
NameDateSize

..12-Mar-20154 KiB

.lldbinit12-Mar-2015251

README12-Mar-20151.3 KiB

utils.py12-Mar-20151.5 KiB

README

1Files in this directory:
2
3o .lldbinit:
4
5An example lldb init file that imports the utils.py module and adds the
6following 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 .lldbinit
18and the utils.py files which are located in my HOME directory.  The lldb init
19file imports the utils Python module and adds the 'pwd', 'cd', and 'system'
20commands.
21
22Johnnys-MacBook-Pro:multiple_threads johnny$ pwd
23/Volumes/data/lldb/svn/trunk/test/functionalities/watchpoint/multiple_threads
24Johnnys-MacBook-Pro:multiple_threads johnny$ lldb
25(lldb) pwd
26/Volumes/data/lldb/svn/trunk/test/functionalities/watchpoint/multiple_threads
27(lldb) cd ..
28Current working directory: /Volumes/data/lldb/svn/trunk/test/functionalities/watchpoint
29(lldb) help system
30
31Execute the command (a string) in a subshell.
32Syntax: system
33(lldb) system ls -l
34total 0
35drwxr-xr-x  7 johnny  admin  238 Oct 11 17:24 hello_watchlocation
36drwxr-xr-x  7 johnny  admin  238 Oct 11 17:24 hello_watchpoint
37drwxr-xr-x  7 johnny  admin  238 Oct 11 17:24 multiple_threads
38drwxr-xr-x  7 johnny  admin  238 Oct 11 17:24 watchpoint_commands
39
40retcode: 0
41(lldb) 
42