Skip to content

Commit cc0596a

Browse files
DavidSpickettLukacma
authored andcommitted
[lldb][docs] Add example output for standalone debugging script
Varies by host but I think it's useful to give some expectation.
1 parent 4c7f542 commit cc0596a

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

lldb/docs/use/tutorials/implementing-standalone-scripts.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,19 @@ if target:
131131
if symbol:
132132
# We do have a symbol, print some info for the symbol
133133
print(symbol)
134-
```
134+
```
135+
136+
### Expected Output
137+
138+
Exact output varies by system, but you should see something like this:
139+
140+
```
141+
Creating a target for './a.out'
142+
SBBreakpoint: id = 1, name = 'main', module = a.out, locations = 1
143+
SBProcess: pid = 2593449, state = stopped, threads = 1, executable = a.out
144+
thread #1: tid = 2593449, 0x0000aaaaaaaa0714 a.out`main at test.c:3:9, name = 'test.o', stop reason = breakpoint 1.1
145+
frame #0: 0x0000aaaaaaaa0714 a.out`main at test.c:3:9
146+
SBFunction: id = 0x0000002e, name = main, type = main
147+
a.out[0x714]: mov w0, #0x0 ; =0
148+
a.out[0x718]: ret
149+
```

0 commit comments

Comments
 (0)