Skip to content
0:00 / 0:00

#gdb#reversedebugging#tui

CppCon 2015: Greg Law " Give me 15 minutes & I'll change your view of GDB"

CppCon

189K subscribers • 103 videos on Hallway • Conference channel

YouTube
  • Recommended by 9 people: 6 on Hacker News, 1 on Lobsters and 2 in engineering communities.
  • A classic. People kept recommending it from 2016 to 2023.
  • Presented by Greg Law
  • Linked in the descriptioncppcon/cppcon2015

Intermediate. Assumes working knowledge.

270K views11 years ago9 recommendations

Tools and practiceSystems programmingDebuggingThe shell and command lineC++

Greg Law demonstrates advanced GDB features, including its text user interface and reverse debugging capabilities, in a 15-minute lightning talk.

Cppcon.org — Presentation Slides, PDFs, Source Code and other presenter materials are available at: github.com/cppcon/cppcon2015 — Lightning Talk — Videos Filmed & Edited by Bash Films: BashFilms.com Work at Hudson River Trading (HRT): tinyurl.com/safxfctf

Why it's here

9 people recommend this

What people say. Engineers frequently recommend this talk to show how powerful GDB can be beyond basic command-line usage.

u/Jon-Targaryenin r/C_Programming • Recommends

CppCon 2015: Greg Law "Give me 15 minutes & I'll change your view of GDB"

pushcxon Lobsters • Recommends

Give me 15 minutes & I'll change your view of GDB

u/a_p_clarkin r/ReverseEngineering • Recommends

GDB tips

zythonon Hacker News • Recommends

On “GDB 8.1 Released”

Seems like a I cannot edit my post, but I just remembered this brilliant short talk (15min) about gdb's TUI. link to this video It really did change my opinion of gdb in just 15 min.

daniel-levinon Hacker News • Recommends

On “Ask HN: What is the best practice for reading large pieces of C code?”

Compile it with debugging symbols and run it with gdb in tui mode. This will let you place breakpoints in source files, view back traces, find the definitions of functions, structures, macros, etc. The learning curve is a tad steep, but this video is pretty good: link to this video

flukuson Hacker News • Recommends

On “Why Vi Rocks”

> Sure, but I bet Intellij is a bit better when it comes to debugging java applications. I don't know about intelliJ specifically, but a good debugger beats the crap off the limited interface an IDE provides to them. It looks like IntelliJ only offers basic breakpoint/step through, etc. For a quick overview of what you're missing out on checkout "Give me 15 minute and I'll change you min on GDB": link to this video (hopefully the right video, can't check at work)

flukuson Hacker News • Recommends

On “55,000 lines of Rust code later: A debugger is born”

> So anything like this on Linux sounds like a very positive step forward. GDB has had reverse debugging since 2009 and there are other tools like rr and a few commercial ones. If anything I'd say that you calling it time travel debugging instead of reverse debugging demonstrates how insular the windows developer world is more than the windows platform being ignored. A great demonstration is in the video "Give Me 15 minutes and I'll change your view of GDB": link to this video

slavik81on Hacker News • Recommends

On “Debugging with GDB”

I'd also recommend "Give me 15 minutes and I'll change your view of GDB" 1 by Greg Law at CppCon 2015. As someone who wasn't very familiar with GDB, I learned a lot from seeing it used by someone skilled. 1: link to this video

skywal_lon Hacker News • Recommends

On “Hacked GDB Dashboard Puts It All on Display”

Nice! There is already a TUI in gdb albeit not as good looking. For more info, there is a quick talk about it and other niceties that you may not know about: link to this video

shortrounddev2on Hacker News • Recommends

On “You Only Need a Tablet for Computer Science”

…, and you can actually mount a remote drive on a Chromebook (I think via sshfs?). From there you can use an electron based text editor like Atom (and I guess VSCode would work these days) and just compile and run programs via some SSH commands. I'll say anybody who wants to do the same thing with C should definitely check out GDB and its TUI mode: link to this video But I think these days, running a GUI application over a network has become trivial. Back then, I don't remember any providers making it simple to deploy such projects…

u/wished_youin r/C_Programming • Mentions

GDB TUI mode Man, I just saw GDB TUI mode. It is amazing More here link to this video Thoughts ?

u/Yamoyekin r/C_Programming • Mentions

On “Properly Learning GDB”

Here’s a great video that taught me about the basics link to this video

u/Nunuvinin r/C_Programming • Mentions

On “Memory viewer like visual studio for vim”

[video a lot of gdb useful info in under 15 mins. There is a 1hr version as well with even more stuff.

u/Nunuvinin r/C_Programming • Mentions

On “How do you program in C?”

I do not use any XD Plain vim can do a lot (still struggling with learning its default functionality). You might wanna check out ctags and learn vim hard way. If you really want to tinker you can emacs, but that is a lot more customization (eats time). very good gdb intro: [video I do spend more time in sublime but that more of old habit than anything. VS Code is currently way easier to use and it has way more to offer. Of course learn git it is a dream come true. It will save you from losing hours of work and will allow to roll back.

u/wished_youin r/C_Programming • Mentions

On “Trouble swapping 2 columns from a text file using pointers”

…way would be something like `while((retval = fscan(...))==1)`. Also, a piece of advice is to do debugging. It's a simple code. Start debugging by using simple `printf`. For example at the end of your program, print the value of number of rows. They should be correct. Use gdb. Understand what breakpoints are and how they work. Check this link out link to this video…