Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* question about using gdb in emacs
@ 2004-08-06 18:31 Li, Jindong (GE Infrastructure, Non GE)
  2004-08-06 18:34 ` David Daney
  0 siblings, 1 reply; 2+ messages in thread
From: Li, Jindong (GE Infrastructure, Non GE) @ 2004-08-06 18:31 UTC (permalink / raw)
  To: gdb

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?

I used gdb in emacs a lot before. The only change here is I just installed the emacs 21.3. Was it something I set wrong?


Thanks.


jli


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: question about using gdb in emacs
  2004-08-06 18:31 question about using gdb in emacs Li, Jindong (GE Infrastructure, Non GE)
@ 2004-08-06 18:34 ` David Daney
  0 siblings, 0 replies; 2+ messages in thread
From: David Daney @ 2004-08-06 18:34 UTC (permalink / raw)
  To: Li, Jindong (GE Infrastructure, Non GE); +Cc: gdb

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-06 18:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-06 18:31 question about using gdb in emacs Li, Jindong (GE Infrastructure, Non GE)
2004-08-06 18:34 ` David Daney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox