Skip to content

Commit 82f9635

Browse files
bors[bot]adamgreen
andcommitted
Merge #141
141: Add 'layout src' note r=therealprof a=adamgreen This is my initial attempt to address issue #127 opened by @RandomInsano. Co-authored-by: Adam Green <[email protected]>
2 parents 306993c + a53c214 commit 82f9635

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/05-led-roulette/debug-it.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ $5 = 42
109109

110110
If we use `step` again on top of the `loop {}` statement, we'll get stuck because the program will
111111
never pass that statement. Instead, we'll switch to the disassemble view with the `layout asm`
112-
command and advance one instruction at a time using `stepi`.
112+
command and advance one instruction at a time using `stepi`. You can always switch back into Rust
113+
source code view later by issuing the `layout src` command again.
113114

114115
> **NOTE** If you used the `step` command by mistake and GDB got stuck, you can get unstuck by hitting `Ctrl+C`.
115116

0 commit comments

Comments
 (0)