question about using gdb in emacs
David Daney
ddaney@avtrex.com
Fri Aug 6 18:34:00 GMT 2004
Li, Jindong (GE Infrastructure, Non GE) wrote:
> I am using emacs 21.3. I want to use gdb in emacs. I did the following:
> 1. open emacs
> 2. go to my application directory
> 3. M-x shell to start shell
> 4. If I type "gdb" in the shell prompt, the gdb window was opened.
> But I don't want to use gdb this way (but this proves that "gdb" is recognized by the shell).
> 5. type the command `M-x gdb' followed by `Return'
> 6. The Emacs message bar will now display the message:
> Run gdb (like this): gdb
> Enter the name of my executable program test.exe
> 7. I got the erro message:
> searching for program: no such file or directory, gdb
>
> Question:Why "gdb" is not recognized in the second way?
>
It is in the PATH of the secondary shell started in emacs, but not in
the PATH of emacs itself.
David Daney.
More information about the Gdb
mailing list