delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/14/22:10:38

From: lederman AT dstc DOT qut DOT edu DOT au
Subject: Am I being debugged?
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Thu, 15 Dec 1994 08:14:11 +1000 (EST)

Hi,

   Anyone have any ideas on how a program might discover whether it was
   invoked normally or via "go32 -d gdb ..."

   Our Modula-2 runtime system normally prints a stack-trace by parsing
   the output of nm, before aborting an application .  Under gdb I just
   want to do an INT 3 and let gdb take over.  Short of asking the user
   "Are you using gdb?(y/n)", I haven't been able to come up with a way
   of doing this.

Jeff.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
lederman AT fit DOT qut DOT edu DOT au
              _--_|\            Faculty of Information Technology
             /      QUT         Queensland University of Technology
             \_.--._/           Box 2434  Brisbane 4001  AUSTRALIA 
                   v            Ph: +61 7 864 5121  Fax: +61 7 864 1282


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019