LWN.net Logo

an intermediate example

an intermediate example

Posted May 3, 2007 7:16 UTC (Thu) by bkoz (guest, #4027)
In reply to: an intermediate example by roelofs
Parent article: A tale of two release cycles

...the continuing saga of gdb vs. C++ means that elaborate logging structures have been built to debug basic constructs. I consider this a reversion to printf.

I don't think this sad state of affairs has anything to do with the gdb release strategy, but instead is more about gdb vs. g++ when dealing with debug info generation, the difficulty of representing and correctly displaying the full complexity of C++ types with scope info, lack of interest or skill in the gdb community, and the constraints of having to support a wide variety of devices in gdb, many of them obscure, with severe technical limitations, and often poorly documented.


(Log in to post comments)

GDB Alternatives

Posted May 3, 2007 8:42 UTC (Thu) by alex (subscriber, #1355) [Link]

Much as I love my GDB command line I can't help but think it's one of those core apps that could do with a step back and re-write. I've looked at the code a few times and it's not pretty which I think makes it a huge learning curve for any wanabe hacker.

Of course it would require some people to actually start that effort. Have you seen any alternatives to GDB? Could this be an area where the monoculture stiffles true innovation in development?

GDB Alternatives

Posted May 3, 2007 9:19 UTC (Thu) by scottt (subscriber, #5028) [Link]

There is frysk: http://sourceware.org/frysk/
If don't mind debugging your C++ program with a debugger written in Java.

GDB Alternatives

Posted May 3, 2007 11:08 UTC (Thu) by mtk77 (guest, #6040) [Link]

I am worried about frysk. It seems that the answer to all problems with gdb is "frysk will make gdb obsolete" but the look like they solve completely different problems.

I'm sure it's not deliberate, but it seems that the almost Microsoft-esque tactic of preannouncing something has the same effect - of putting off potential competitors.

There is no good reason that free software cannot produce something of the quality of the wonderful proprietary debugger TotalView but no work is being done in that direction.

GDB Alternatives

Posted May 4, 2007 4:27 UTC (Fri) by mitchskin (subscriber, #32405) [Link]

Robert O'Callahan (of Mozilla) isn't rewriting gdb, but he's working on an execution recorder that provides enough data for a debugger to reconstruct an entire program execution run down to the instruction level.

blog post introducing the idea

project page

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds