GDB is REALLY easy! Find Bugs in Your Code with Only A Few Commands

preview_player
Показать описание
Join me and learn how to debug a program written in C using GDB. In this video, we go over how to compile a program written in C so that GDB can present it, as well as the basic commands used in GDB to debug a program.

Like and subscribe for more videos like this!

🏫 COURSES 🏫

🔥 SOCIALS 🔥

Timestamps
Intro 0:00
Compiling Code for GDB 0:20
Starting GDB 1:27
Breakpoints 2:05
C Step vs ASM Step 2:37
Step Over vs Step In 3:26
Finding the Bug 4:26
Outro 7:16
Рекомендации по теме
Комментарии
Автор

Need more low level channels like this. Thank you!

rashidz
Автор

One of the clearest, least daunting videos about GDB. I actually feel I could do it.

desmondnel
Автор

Best videos about C and embedded programming. I love the way you put motivation on the table. And I really appropriate the short length of the video and effort put into it.

BorisGrishenco
Автор

Ah, gdb my old friend. We don't talk much, but when we do the conversation is invaluable. I tracked down a bug in my php code with gdb for a long lived demon process that was crashing from time to time. Running that program in gdb for a few days until it finally reproduced the error that wasn't making it to the error handler made everything so much clearer. (This was a long time ago, and there was a bug in curl that was causing it, I since moved over to using the native file_get_contents functions for http requests and the bug went away.)

Dygear
Автор

Thank you so much for this. Friendship ended with debug print statements, now gdb is my best friend.

MariaNicolae
Автор

I noticed a minor mistake when you explaining the failure instruction. This is AT&T assembly syntax (not Intel) so "mov %eax, (%rdx)" means moving the value in %eax to the one referenced by (%rdx), not the other way around.

kkenzuro
Автор

That was a really useful succinct introduction to getting going with GDB. Thanks !

BobBeatski
Автор

Thanks a lot! Always wanted to know how to use gdb manually and this is a perfect starting point! 👍

dertom
Автор

first time using GDB, and this video gave me the tools do everything I normally need in my IDE debugger just fine. Already fixed 2 or 3 bugs in the past few days that would've been a pain in the ass with only print debugging.

torf
Автор

Never used gdb alone. Always with a front-end. Very interesting to see how to use it directly. thnx!

evgusk
Автор

Great Tutorial man. Its so intresting to see the assembly code!

a.v
Автор

This is really good quality content for beginners. I'm showing this to my classmates that struggle with gdb, and they all seem to like it too. You go straight to the point, give a good concrete example and you speak well. Thank you!

klimmesil
Автор

Nice, succinct and to the point! Thank you!

TheDeclancox
Автор

Great video! gdb is one of those tools I know I should know much better. Please keep this stuff coming!

alol-alol
Автор

Great tutorial, learned something new, thanks!

anthonyheak
Автор

Clear and very supportive explanation!

chandulanethmal
Автор

Great video - if you link the second video on GDB (mentioned in this video) - that be awesome

TheTrek
Автор

Wow. Thank you so freaking much, buddy.

Fernando-duuj
Автор

Thanks! This was exactly what I needed. ❤️
I subscribed
I hope you do more forensic engineering

Ms.Robot.
Автор

The explanation was simple and didactic. The audio is clear, it's helps a lot to flow of the idea.
Help me a lot for beginner in GDB, thank you !!

FabioLima-sksq