Date: Tue, 9 Jul 2002 08:31:59 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: roadraat AT aol DOT com cc: djgpp AT delorie DOT com Subject: Re: gdb hangs in shell from Emacs In-Reply-To: <86e34513.0207081349.767f0af@posting.google.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 8 Jul 2002 roadraat AT aol DOT com wrote: > I use DJGPP on Win98. I'm getting started with GDB using version > 5.1.1. It seems to work fine when I run it under a DOS prompt. > > However, I mostly use Emacs 21.2.1 as my development environment, and > GDB hangs. I run a shell command and get a DOS command line in Emacs. > I run a little dos batch script to set my path to start in the > djgpp\bin directory and to set the DJGPP environment variable to > djgpp.env. Is that the Windows port of Emacs or the DJGPP port? If the former, then it won't work because the way Emacs redirects standard handles of the subordinate program (GDB, in this case) to a pipe is incompatible with how GDB handles input. So GDB still thinks it is invoked from a command line and tries to read the keyboard directly. If your Emacs is the DJGPP port, then it also won't work because asynchronous subprocesses aren't supported :-(