The TUI in gdb is a great way to get started with gdb. Instead of writing your own hooks and commands you can visually step through the program and source code ( if you have debug symbols enabled) I think that more people should know about this feature.
Give me 15 minutes and I'll change your view of GDB (2015) [video]
11–20 of 95 posts
Re: Give me 15 minutes and I'll change your view of GDB (2015) [video]
#12I used to think GDB was a tool with the most broken interface I've ever seen, and which requires arcane commands to do the most trivial of debugging things. I still do, but I used to too. That early dig against Windows was particularly funny. There's no way I would pick that over Visual Studio's debugging tools.
Re: Give me 15 minutes and I'll change your view of GDB (2015) [video]
#13I used to think GDB was a tool with the most broken interface I've ever seen, and which requires arcane commands to do the most trivial of debugging things. I still do, but I used to too. That early dig against Windows was particularly funny. There's no way I would pick that over Visual Studio's debugging tools.
I see what you did there. - Mitch Hedberg
Re: Give me 15 minutes and I'll change your view of GDB (2015) [video]
#14Re: Give me 15 minutes and I'll change your view of GDB (2015) [video]
#15Now I'm using an awesome GDB init file to construct a convenient debugging interface. It's an open source project and you won't regret it: https://github.com/cyrus-and/gdb-dashboard
There is also a browser-based frontend for GDB: https://github.com/cs01/gdbgui
If you want to try more, search the keyword GDB on GitHub and sort by stars, then you will find many GDB enhancement tools.
Re: Give me 15 minutes and I'll change your view of GDB (2015) [video]
#16I used to think GDB was a tool with the most broken interface I've ever seen, and which requires arcane commands to do the most trivial of debugging things. I still do, but I used to too. That early dig against Windows was particularly funny. There's no way I would pick that over Visual Studio's debugging tools.
Throw in the Sysinternals suite and hopefully powershell continues to improve and you have a very nice debugging/sys admin/etc toolset.
I just wished windows had the elegance of the unix-style file system and was as open as linux/bsd/etc.
Re: Give me 15 minutes and I'll change your view of GDB (2015) [video]
#17I used to think GDB was a tool with the most broken interface I've ever seen, and which requires arcane commands to do the most trivial of debugging things. I still do, but I used to too. That early dig against Windows was particularly funny. There's no way I would pick that over Visual Studio's debugging tools.
>I still do, but I used to too. I see what you did there. - Mitch Hedberg
In other words, it was unnecessary. That kind of stuff is for reddit.
Re: Give me 15 minutes and I'll change your view of GDB (2015) [video]
#18I used to think GDB was a tool with the most broken interface I've ever seen, and which requires arcane commands to do the most trivial of debugging things. I still do, but I used to too. That early dig against Windows was particularly funny. There's no way I would pick that over Visual Studio's debugging tools.
The most recent examples I've stumbled upon were System Workbench for STM32 and Atollic Studio debugging relatively recent STM32F7 series. When the debugging from IDE doesn't work, it's very hard to see where the problem is (is the hardware interface service started? with the correct parameters? does it have access to hardware USB device? did it even succeed flashing the firmware?)
Re: Give me 15 minutes and I'll change your view of GDB (2015) [video]
#19Earlier quoted context omitted.
>I still do, but I used to too. I see what you did there. - Mitch Hedberg
If you are curious as to why you're being downvoted, it's because this comment adds no substance and states something completely obvious. In other words, it was unnecessary. That kind of stuff is for reddit.
HN'ers sometimes need to lighten up a bit. A little humor among thousands of serious comments (many not useful) is not going to bring down HN and it is incorrect to assume it doesn't add any substance. My comment was not crass, sarcastic, degrading or mean. It was appreciating the commenter's sense of humor in a harmless way.
Re: Give me 15 minutes and I'll change your view of GDB (2015) [video]
#20I used to think GDB was a tool with the most broken interface I've ever seen, and which requires arcane commands to do the most trivial of debugging things. I still do, but I used to too. That early dig against Windows was particularly funny. There's no way I would pick that over Visual Studio's debugging tools.
There are convenient graphical frontends for GDB. DDD for instance can create plots, diagrams, etc. https://www.gnu.org/software/ddd/