🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189853

GDB-like Interaction with Assynchronuous Processes

#189853
From: Farshad Nayeri
Date: Thu, 25 Oct 1990 14:35
44 lines
2895 bytes
I am having some trouble getting buffer cut/paste to interract correctly with
an assynch. process running in a buffer. Here is a detailed description if you
like: 

I am trying to get a gnu emacs interface to a debugger (for a Smalltalk
virtual machine*) that I wrote. Since most of the virtual machine debugging
happens while gdb is running, I thought it would be appropriate to just add a
new layer of filtering on top of what gdb already offers. Well, there is only
one problem: when Smalltalk executes a new method (Smalltalk version of a
procedure), I will have to ask *the debugger* to display the dissassembled
source for the method. GDB has it easy, because it just looks up the file from
the disk, well I can't really do that.

My solution was to use send-string to send a command to my debugger to display
the code for the desired method, which works fine. But I am having a hell of a
time with 
     (1) waiting until the process is done sending output.
     (2) moving the point to the right places to cut the 
         information out of the debugger buffer and display it to a new
	 buffer.

I have tried using accept-process-output, but it does not seem to work right:
"Non-nil arg PROCESS means do not return until *some* output has been received
from PROCESS." 

I looked through all our sources which used the above command, as well has the
info files, and still can't figure it out. Has anyone dealt with something
this before?  For an interesting comment about this, look at ftp.el, and
search for accept-process-output.

Thanks --farshad


*) In case you are wondering: 
It is a bytecode-level Smalltalk VIRTUAL MACHINE debugger, and therefore it
is different than the regular Smalltalk debugger written in Smalltalk. My
debugger is for developers of the Smalltalk virtual machine (it is written in
C), not for developers who code in Smalltalk (confusing, eh?).

--
Farshad Nayeri                Object Oriented Systems Group
nayeri@cs.umass.edu           Dept. of Computer and Information Science
(413)545-0256                 University of Massachusetts at Amherst
Technical Details
Message-ID: <NAYERI.90Oct25103526@ibis.cs.umass.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!bu.edu!rpi!zaphod.mps.ohio-state.edu!samsung!crackers!m2c!umvlsi!dime!dime.cs.umass.edu!nayeri

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,fe1fcaee5ad545ba,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1990-10-25 07:35:26 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!bu.edu!rpi!zaphod.mps.ohio-state.edu!samsung!crackers!m2c!umvlsi!dime!dime.cs.umass.edu!nayeri
From: nayeri@cs.umass.edu (Farshad Nayeri)
Newsgroups: gnu.emacs.help
Subject: GDB-like Interaction with Assynchronuous Processes
Keywords: assynchronuous filter emacs lisp
Message-ID: <NAYERI.90Oct25103526@ibis.cs.umass.edu>
Date: 25 Oct 90 14:35:26 GMT
Sender: news@dime.cs.umass.edu
Reply-To: nayeri@cs.umass.edu
Distribution: gnu
Organization: Dept of Comp and Info Sci, Univ of Mass (Amherst)
Lines: 44
Posted: Thu Oct 25 15:35:26 1990