home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / msdos / programm / 12521 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.3 KB

  1. Path: sparky!uunet!news.univie.ac.at!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!uwm.edu!cs.utexas.edu!sun-barr!decwrl!oracle!unrepliable!bounce
  2. Newsgroups: comp.os.msdos.programmer
  3. From: fyu@.com (Francis Yu)
  4. Subject: Tracing function call path on Ctrl-C break?
  5. Message-ID: <1993Jan26.215605.7293@oracle.us.oracle.com>
  6. Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
  7. Nntp-Posting-Host: oasun1.us.oracle.com
  8. Organization: Oracle Corporation, Redwood Shores, CA
  9. Date: Tue, 26 Jan 1993 21:56:05 GMT
  10. X-Disclaimer: This message was written by an unauthenticated user
  11.               at Oracle Corporation.  The opinions expressed are those
  12.               of the user and not necessarily those of Oracle.
  13. Lines: 12
  14.  
  15. Is there any way to let a C program trace back to the function and the
  16. statement in the source file when a Ctrl-C break occur?  I do not want
  17. to run the program in CodeView.
  18.  
  19. I know that I can use signal() to trap SIGINT, but how do I retrieve
  20. the line number in the source code and function call path?  If I
  21. compile with CodeView debugging flags, the information must be there.
  22.  
  23. Please kindly reply to fyu@oracle.com.  Thanks.
  24. Francis H. Yu
  25. Oracle Corporation, 500 Oracle Parkway, Box 659504, Redwood Shores, CA  94065
  26. Email:  fyu@shanghai.oracle.com  Voice:  (415) 506-3129  FAX:  (415) 506-7103
  27.