简体   繁体   English

cgdb不会退出:确定原因并修复

[英]cgdb doesn't exit: determining why and fixing

After I run a program through cgdb , cgdb won't exit. 通过cgdb运行程序cgdbcgdb将不会退出。 Typing kill , then quit results in cgdb hanging. 键入kill ,然后quit导致cgdb挂起。

If I do not load a file in the debugger, quit works. 如果我没有在调试器中加载文件,则quit工作。 If I load a file but do not run it, quit works. 如果我加载文件但不运行它,则quit工作。 If I run the file, quit hangs. 如果我run该文件, quit挂起。

How do I: 我如何:

  • Determine why this is happening? 确定为什么会这样? I can't look at the return value of cgdb (because I have to ps aux ; kill it, or close the terminal window, etc). 我看cgdb的返回值(因为我必须ps aux ; kill它,或关闭terminal窗口,等等)。 I can't find any references to other people with this issue online, either. 我也找不到在线与此问题有关其他人的任何参考资料。
  • Fix it ? 解决吗? Without knowing exactly what's going wrong, is there any super-cool-command I can run to force-kill the debugger on quit ? 在不知道到底出了什么问题的情况下,我是否可以运行任何super-cool-command来在quit强制杀死调试器?

Further details: 更多详情:

  • Installed cgdb with macports . macports安装了cgdb Running port upgrade outdated has not resolved this issue. 运行port upgrade outdated无法解决此问题。
  • cgdb --version returns: CGDB 0.6.6 cgdb --version返回: CGDB 0.6.6
  • uname -a : Darwin Kernel Version 12.2.0 uname -a :Darwin内核版本12.2.0
  • Using OS X 10.8.2 . 使用OS X 10.8.2

Pretty sure this is fixed in cgdb-0.6.7. 可以肯定的是,此问题已在cgdb-0.6.7中修复。 Here's the issue: https://github.com/cgdb/cgdb/issues/1 这是问题所在: https//github.com/cgdb/cgdb/issues/1

Homebrew has the latest cgdb in it, or you could compile from source. Homebrew中包含最新的cgdb,或者您可以从源代码进行编译。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM