GDB TUI tips — authorized text UI checklist
GDB TUI (Text User Interface) gives a split terminal view of source/assembly/registers inside stock GDB. Use these tips only on processes and binaries you are authorized to debug. Plugin layers stay on GEF tips, PEDA, and Dashboard.
Snapshot
| Field | Value |
|---|---|
| Surface | GDB TUI (stock) |
| Job | Authorized terminal layout / focus checklist |
| Sibling compares | GDB vs LLDB |
| Plugin peers | GEF, PEDA, Dashboard |
Tip checklist (authorized only)
- Record
gdb --versionand whether you are on bare GDB or a distro wrapper. - Start with a student-built binary; set breakpoints before enabling busy layouts.
- Prefer documented
layout/ focus keys from the TUI chapter for your build — do not invent keybinds. - When the screen corrupts, use the documented refresh/disable path; note terminal (
$TERM) in Evidence. - Keep TUI as literacy — escalate to GEF only if the syllabus needs richer views.
- Hash binaries and save session notes under one case ID.
Allowed framing
- Classroom native debugging on Linux/BSD lab VMs you control.
- Teaching source+asm split views without pulling in a full IDE.
- Comparing stock TUI vs plugin dashboards as packaging choices.
- Pairing with LLDB overview when the course also covers LLVM toolchains.
Scope we will not cover
- No exploit / ROP cookbooks driven from TUI screenshots.
- No crack/keygen or DRM-bypass via debugger patches.
- No anti-anti-debug or "hide from GDB" guides.
- No unauthorized attachment to production or third-party processes.
Beginner path (authorized only)
- Install GDB from the channel your lab approves; record the version.
- Load an authorized training binary; break at
main(or the syllabus entry). - Enable a simple TUI layout; practice focus/refresh once.
- Disable TUI and confirm CLI still works — avoid depending on a broken redraw.
- Optional: compare with GEF tips on the same authorized binary.
- Use GDB TUI for authorized terminal literacy, not as an exploit cockpit.
- Prefer plugin pages when you need GEF/PEDA/Dashboard features.
- Authorized targets only.
For legal, authorized and educational use only.
FAQ
How is this different from gdb-gef-tips / gdb-peda / gdb-dashboard?
Those pages cover plugin/dashboard layers. This page is stock GDB TUI layout tips — still authorized targets only. You can combine TUI with GEF/PEDA when your lab allows it.
How do I enter TUI?
Common entry is tui enable / layout commands documented for your GDB build — confirm against the upstream TUI chapter for the version you installed (gdb --version).
TUI vs GUI front-ends?
TUI is a terminal split view inside GDB. IDE/GUI front-ends are separate products. Prefer the lightest surface that answers the lab question.
Does TUI work over SSH?
Often yes with a capable terminal, but redraw quirks happen. Record terminal type and GDB version in case notes when TUI misbehaves.
Does this teach exploit development or anti-debug bypass?
No. Authorized debugging and education only — BinBench will not supply exploit PoCs or anti-anti-debug cookbooks.