diff --git a/lldb/www/scripting.html b/lldb/www/scripting.html index 0426249439cd..fb7dc573a79c 100755 --- a/lldb/www/scripting.html +++ b/lldb/www/scripting.html @@ -210,15 +210,15 @@ you would do something like this:
- % lldb
- (lldb) process attach -n "dictionary"
+ % lldb
+ (lldb) process attach -n "dictionary"
Architecture set to: x86_64.
Process 521 stopped
* thread #1: tid = 0x2c03, 0x00007fff86c8bea0 libSystem.B.dylib`read$NOCANCEL + 8, stop reason = signal SIGSTOP
frame #0: 0x00007fff86c8bea0 libSystem.B.dylib`read$NOCANCEL + 8
- (lldb) br s -n find_word
+ (lldb) breakpoint set -n find_word
Breakpoint created: 1: name = 'find_word', locations = 1, resolved = 1
- (lldb) c
+ (lldb) continue
Process 521 resuming
Process 521 stopped
* thread #1: tid = 0x2c03, 0x0000000100001830 dictionary`find_word + 16
@@ -231,15 +231,15 @@
106 return 0;
107
108 int compare_value = strcmp (word, dictionary->word);
- (lldb) script
+ (lldb) script
Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D.
- >>> import tree_utils
- >>> root = lldb.frame.FindVariable ("dictionary")
- >>> current_path = ""
- >>> path = tree_utils.DFS (root, "Romeo", current_path)
- >>> print path
+ >>> import tree_utils
+ >>> root = lldb.frame.FindVariable ("dictionary")
+ >>> current_path = ""
+ >>> path = tree_utils.DFS (root, "Romeo", current_path)
+ >>> print path
LLRRL
- >>> ^D
+ >>> ^D
(lldb)
@@ -253,7 +253,7 @@
import tree_utils
- imports the file where we our DFS function, tree_utils.py, into Python. +
imports the file where we wrote our DFS function, tree_utils.py, into Python. Notice that to import the file we leave off the ".py" extension. We can now call any function in that file, giving it the prefix "tree_utils.", so that Python knows where to look for the function. The line