3 ms·
gdb has been a rat's nest of difficult code due to a million difficult corner cases (even before you take into account all the crazy oddball systems it supports
by gumby 4y ago
gdb has been a rat's nest of difficult code due to a million difficult corner cases (even before you take into account all the crazy oddball systems it supports which just increases the complexity combinatorially). By comparison a program like gcc is conceptually "simpler" since the majority of its code base is devoted to the problem at hand (code analysis and generation).
gdb's codebase been continuously painful for as long as I had to deal with it (about the decade before 2000). And 99.99% of my "dealing" with it has been indirect. Yeoman's work was put in by John Gilmore and Stu Grossman in the early-mid 90s both who somehow managed to avoid burning out. My hat is off to Pedro Alves for not only being willing to work on gdb but to tackle gnarly problems.
Just to be clear, pace Shakespeare, I post to praise gdb, not bury it. A debugger is one of the most complex pieces of systems code possible.
- deleted 4y ago[deleted]
- ptsneves 4y agoThe path to acceptance of patches is not great from my experience. I made a minor change to a doc, which then was then requested to improve other more general parts of the unwinder doc. I did them and submitted. It got kind of approved but not enough for merge. I tried to ping some time later but the approval of somebody else was needed and I gave up. This post gave me the nudge to ping again for who might be the approver required. [1] https://sourceware.org/pipermail/gdb-patches/2022-June/189784.html https://sourceware.org/pipermail/gdb-patches/2022-June/18978...
- gumby 4y agoI admit it was a lot easier when Cygnus was managing the development. Now it's back (AFAIK) in volunteer-land things revert to the mean. Even at Cygnus to get there I needed to engineer a fork (not just codebase -- we went the other way, but organizationally) which at the time was extremely controversial. Nowadays that model is the default. But gdb has no steering committee.