From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,68b038366e15f2a1 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,68b038366e15f2a1 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-04-25 14:46:15 PST Xref: gmd.de comp.sys.dec:7273 comp.os.vms:22485 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) Newsgroups: comp.sys.dec,comp.os.vms Subject: Re: how to tell in a VMS program if it is running in DEBUGGER Date: 25 Apr 1993 21:14:59 GMT Organization: HST Wide Field/Planetary Camera Distribution: world Message-ID: <1rev0jINNlii@gap.caltech.edu> References: <1993Apr25.151944.23271@husc3.harvard.edu> Reply-To: carl@SOL1.GPS.CALTECH.EDU NNTP-Posting-Host: sol1.gps.caltech.edu In article <1993Apr25.151944.23271@husc3.harvard.edu>, mlevin@husc8.harvard.edu (Michael Levin) writes: = = Suppose I have a program, written in C on a VMS system. How do I =tell within the prorgram if it happens to be running alone, or inside =the VMS debugger? I want a function in_debug() which I can use as =follows. Is there some system call or something? = =if in_debug() = { } =else = { } = = = Please send all replies to mlevin@husc8.harvard.edu. You could define a global variable called in_debug, initialize it to zero, and if you run the program under the debugger, deposit a 1 into in_debug. -------------------------------------------------------------------------------- Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My understanding of astronomy is purely at the amateur level (or below). So unless what I'm saying is directly related to VAX/VMS, don't hold me or my organization responsible for it. If it IS related to VAX/VMS, you can try to hold me responsible for it, but my organization had nothing to do with it.