To: lederman AT dstc DOT qut DOT edu DOT au Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Am I being debugged? Date: Thu, 15 Dec 94 08:39:05 +0200 From: "Eli Zaretskii" > Anyone have any ideas on how a program might discover whether it was > invoked normally or via "go32 -d gdb ..." Try looking at the original PSP of the invoked program. Its address is one of the fields of the _go32_info_block variable declared on . I didn't try this, but the command line tail in there just might still hold the original command line used to invoke your program.