Stephen Burke
Stephen Burke

Reputation: 892

gdb within emacs on Windows

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.

Upvotes: 1

Views: 1325

Answers (2)

Chmouel Boudjnah
Chmouel Boudjnah

Reputation: 2559

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

Upvotes: 2

HowdyHowdyHowdy
HowdyHowdyHowdy

Reputation: 1211

Try using /cygdrv/c/cygwin/bin

Upvotes: 2

Related Questions