News for hackers. Stuff that matters.
Re:Learning C with gdb by __float on Monday August 27, 2012 @06:49PM (#4441293)
As a student attending the University of Michigan this fall, I was looking through the introductory programming course syllabus and it mentions only ddd. Is gdb something used more heavily in further courses more specific to those pursuing a concentration in EECS?
Re:Learning C with gdb by mrbabbage on Monday August 27, 2012 @09:17PM (#4441678)
ddd is a graphical frontend to gdb and a few other debuggers (like jdb). ddd's UI is straight out of the 90s era of commercial Unices, but I prefer it to gdb since it visualizes source code with breakpoints and the ip and has some nice variable displaying / plotting features (ie it's very easy to visualize a matrix AS a matrix if you're doing some graphics work)

edit: ddd also has a gdb prompt at the bottom, so you really don't lose much by using ddd over gdb unless you can't run an X server

Re:Learning C with gdb by tyrmored on Tuesday August 28, 2012 @03:15AM (#4442514)
cgdb is a nice visualization frontend too: <http://cgdb.github.com/>;
Re:Learning C with gdb by aerique on Tuesday August 28, 2012 @06:44AM (#4442968)
And for the die hard Emacs users there's: http://emacs-fu.blogspot.com/2009/02/fancy-debugging-with-gd...

I generally try to refrain from bringing up Emacs in threads that have nothing to do with it (since Emacs does everything) but I was pleasantly surprised by its gdb support and I have used it extensively in the past.

Re:Learning C with gdb by mark_mcs on Tuesday August 28, 2012 @08:46AM (#4443369)
How does this compare to gdb TUI? For the most part I find TUI adequate but I'm always open to alternatives.
Re:Learning C with gdb by kevinnk on Monday August 27, 2012 @07:27PM (#4441387)
Maybe it's professor specific, but EECS 151, 280 and 281 all stressed using gdb. ddd was mentioned, but most of the debugging examples used gdb. I took these class several years ago though, so it's also possible things have changed since then.