home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / msdos / programm / 12522 < 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!usc!elroy.jpl.nasa.gov!decwrl!oracle!unrepliable!bounce
  2. Newsgroups: comp.os.msdos.programmer
  3. From: fyu@shanghai.oracle.com (Francis H. Yu)
  4. Subject: Tracing function call path on Ctrl-C break?
  5. Message-ID: <1993Jan26.194939.1326@oracle.us.oracle.com>
  6. Originator: fyu@fyusparc2.us.oracle.com
  7. Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
  8. Nntp-Posting-Host: fyusparc2.us.oracle.com
  9. Organization: Oracle Corporation
  10. Date: Tue, 26 Jan 1993 19:49:39 GMT
  11. X-Disclaimer: This message was written by an unauthenticated user
  12.               at Oracle Corporation.  The opinions expressed are those
  13.               of the user and not necessarily those of Oracle.
  14. Lines: 13
  15.  
  16. Is there any way to let a C program trace back to the function and the
  17. statement in the source file when a Ctrl-C break occur?  I do not want
  18. to run the program in CodeView.
  19.  
  20. I know that I can use signal() to trap SIGINT, but how do I retrieve
  21. the line number in the source code and function call path?  If I
  22. compile with CodeView debugging flags, the information must be there.
  23.  
  24. Please kindly reply to fyu@oracle.com.  Thanks.
  25. -- 
  26. Francis H. Yu
  27. Oracle Corporation, 500 Oracle Parkway, Box 659504, Redwood Shores, CA  94065
  28. Email:  fyu@shanghai.oracle.com  Voice:  (415) 506-3129  FAX:  (415) 506-7103
  29.