gdb within emacs on Windows

别等时光非礼了梦想. 提交于 2019-12-11 12:30:42

问题


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.


回答1:


probably adjust your system path to point it where you have gdb installed.




回答2:


Try using /cygdrv/c/cygwin/bin



来源:https://stackoverflow.com/questions/1424231/gdb-within-emacs-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!