Windows 上 emacs 中的 gdb
我在 Windows 中运行 Emacs 22.3。今天早些时候,我让 gdb 在 Emacs 中工作得很好。我正在安装 QT4,在安装过程中它要求我卸载 MSYS,我很快就点击了,没有考虑任何事情。我想我已经使用 MSYS 包安装了 gdb,并且 Emacs 正在使用它,但我不完全确定。现在,当我运行以下命令时,我在迷你缓冲区中收到错误。
M-x gdb
"Searching for program: no such file or directory, gdb"
我尝试使用此代码将路径“C:\cygwin\bin
”添加到 Emacs 加载路径,但仍然遇到相同的错误。
(message "Adding cygwin/bin to load path.")
(add-to-list 'load-path "c:/cygwin/bin")
有人可以告诉我我做错了什么吗?
谢谢。
I'm running Emacs 22.3 in Windows. Earlier today I had gdb working within Emacs just fine. I was installing QT4 and during the installation it asked me to uninstall MSYS which I quickly clicked through not thinking about things. I think I had gdb installed with the MSYS package and Emacs was using that, but I'm not completely sure. Now when I run the following I get an error in the mini-buffer.
M-x gdb
"Searching for program: no such file or directory, gdb"
I tried to add the path "C:\cygwin\bin
" to the Emacs load-path with this code but I still get the same error.
(message "Adding cygwin/bin to load path.")
(add-to-list 'load-path "c:/cygwin/bin")
Could someone tell me what I'm doing wrong?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
可能会调整您的系统路径以将其指向安装 gdb 的位置。
probably adjust your system path to point it where you have gdb installed.
尝试使用 /cygdrv/c/cygwin/bin
Try using /cygdrv/c/cygwin/bin