Debug faster with gdb layouts (TUI)

preview_player
Показать описание
---

Debug faster with gdb layouts (TUI) // If you ever get tired of typing list after every command in gdb, this is the video for you. Here, I describe the GDB Terminal User Interface (or TUI) which, many students don't realize is there. It allows you to see the C-source and assembly source while you step through your code, and the views are configurable through the layout command.

Related Videos:



***

Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers.

About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.

More about me and what I do:

To Support the Channel:
+ like, subscribe, spread the word

Рекомендации по теме
Комментарии
Автор

Thank You for demonstrating the TUI in GDB. This is going to be Helpful.

subhashisghose
Автор

I used this trick when doing my bomblab assignment. Helps so freaking much.
A big tip here is also that control+L refreshes the TUI, as it often gets weirdly "corrupted" and needs often refreshing.

bzboii
Автор

Not having known about this before, you have just revolutionized my debugging experience!

drvanon
Автор

Nice video and happy new year to all fellow C programmers!

JannisAdmek
Автор

This is amazing! Had no idea this was a feature and I've been painfully using GDB this entire semester....

smartkorean
Автор

Cool. I didn't know about that. Been coding for 30 years and still learning. That's why I like your channel.

diceandbricks
Автор

Instead of "b main" & "r" you could just do "start".
Also, instead of "layout next" use "layout src" (or whatever layout name you want).

zirkoni
Автор

I always respected my professors at university and learned many things from them, but I think I have learned even more from you. Thank you professor and please keep on your valuable online courses.

mohammadhosseinzolfagharna
Автор

I see that you can also see the values stored in the registers live. Is it possible to have all 3 shown at once? C code, Assembly, and register values?

vladimir_k_bestplayerna
Автор

do you know if there's a layout gdb for java programs?

giacomog
Автор

wow. where have you been all my life ...

grahamjoss
Автор

Would be nice to have some tool to visualize and compare big arrays on GDB

maiconfaria
Автор

Does this command works in putty session? What to do if it doesn't?

testshar
Автор

There are extensions to gdb like pwndbg or peda that make it much more friendly.

vanowik
Автор

I have this "m68k-elf-gdb.exe" gdb client wich i use to debug 68k assembly, but it does not support tui....i've been trying to recompile it whit added support with no luck, any idea on how to enable tui in this version???

fmontserrattube
Автор

Hi Jacob, can you do tutorial, maybe share some tweaks on how to better understand other people's code, especially when it's a big project with a lot of .c and .h files? Thanks.

johnybaker
Автор

Cannot enable the TUI: error opening terminal [TERM=xterm-256color]

realdragon
Автор

Would you please make a video about Math in embedded systems and btw very helpful videos keep going

chrisfahed
Автор

BTW, GDB in MacOS Venura Gives error, some odd libraries permissions error for setting break points

stelluspereira
Автор

I think it would be great if you made a discord server. Just for people to share and learn from others and it would be easier to help people.

synfuel