- In target terminal type
tty
- copy the result (should be something like
/dev/pts/0
- in gdb window type
tty <pasted-result>
-
enable
tui enable
-
show command and source window
layout src
-
show command, src, and asm window
layout split
-
switch active scroll window
focus cmd
focus src
C-x o
- Prevent other threads from running when single-stepping
set scheduler-locking step
-
Folow into children
set follow-fork-mode child
-
Follow parent
set follow-fork-mode parent
-
Don't detach from unfollowed (suspend it)
set detach-on-fork off
- see other forks
info inferiors
- release other forks to run
detactch inferiors
- see other forks