Live data from Hacker News

Beej's Quick Guide to GDB (2009)

beej.us

1–10 of 29 posts

Re: Beej's Quick Guide to GDB (2009)

#5
post #2

Beej’s guides are great! He does a fantastic job of describing concepts and showing implementations. I also recommend his networking guide: https://beej.us/guide/bgnet/html/single/bgnet.html

This got me started with socket programming back in 2000 or whenever, and I still refer to it occasionally. :D

Re: Beej's Quick Guide to GDB (2009)

#6

I never knew gdb had a tui mode. It is not even specified in the man page as an option.

The manual is worth a read. This is a software (as gcc) in which the "man" page or the information displayed with "--help" is not near the bunch of things there are described in the complete documentation.

Re: Beej's Quick Guide to GDB (2009)

#7
post #6

I never knew gdb had a tui mode. It is not even specified in the man page as an option.

The manual is worth a read. This is a software (as gcc) in which the "man" page or the information displayed with "--help" is not near the bunch of things there are described in the complete documentation.

(for those who don't know, the full manual can be read with `info gdb` - `man gdb` is only a short help)

Re: Beej's Quick Guide to GDB (2009)

#8
post #2

Beej’s guides are great! He does a fantastic job of describing concepts and showing implementations. I also recommend his networking guide: https://beej.us/guide/bgnet/html/single/bgnet.html

I'm a huge fan of his guides for their readability and straightforward delivery. I'm always on the lookout for more authors like him - have you come across any similar authors?

Re: Beej's Quick Guide to GDB (2009)

#9
Remote debugging and especially the extended-remote mode are worth knowing.

That is usually my default workflow. The debugger (client and frontend) run on my desktop box while the app is running under gdbserver on an ARM board on the network.

The other day I was debugging a Windows game on my Linux laptop, editing in vim, compiling with x86_64-w64-mingw-clang and gdbserver running on my desktop PC. Not the most comfortable development environment but sure as hell beats learning another debugger and installing dev tools on Windows.

Post reply on HN