From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31191 invoked by alias); 6 Aug 2004 18:34:26 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 31182 invoked from network); 6 Aug 2004 18:34:25 -0000 Received: from unknown (HELO avtrex.com) (216.102.217.178) by sourceware.org with SMTP; 6 Aug 2004 18:34:25 -0000 Received: from avtrex.com ([192.168.0.111] RDNS failed) by avtrex.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 6 Aug 2004 11:32:23 -0700 Message-ID: <4113CECA.1090806@avtrex.com> Date: Fri, 06 Aug 2004 18:34:00 -0000 From: David Daney User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031030 MIME-Version: 1.0 To: "Li, Jindong \(GE Infrastructure, Non GE\)" CC: gdb@sources.redhat.com Subject: Re: question about using gdb in emacs References: <4B7CBC6E0614B242B2341EFA909D8D6D1C344E87@CINMLVEM03.e2k.ad.ge.com> In-Reply-To: <4B7CBC6E0614B242B2341EFA909D8D6D1C344E87@CINMLVEM03.e2k.ad.ge.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 06 Aug 2004 18:32:23.0041 (UTC) FILETIME=[B6F35710:01C47BE3] X-SW-Source: 2004-08/txt/msg00110.txt.bz2 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.