macoscgdb

cgdb doesn't exit: determining why and fixing


After I run a program through cgdb, cgdb won't exit. Typing kill, then quit results in cgdb hanging.

If I do not load a file in the debugger, quit works. If I load a file but do not run it, quit works. If I run the file, quit hangs.

How do I:

Further details:


Solution

  • Pretty sure this is fixed in cgdb-0.6.7. Here's the issue: https://github.com/cgdb/cgdb/issues/1

    Homebrew has the latest cgdb in it, or you could compile from source.