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

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!elroy.jpl.nasa.gov!usc!howland.reston.ans.net!bogus.sura.net!udel!gatech!uflorida!novavax!francis
  2. From: francis@novavax.UUCP (Francis H. Yu)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Tracing function call path on Ctrl-C break?
  5. Message-ID: <4406@novavax.UUCP>
  6. Date: 27 Jan 93 00:39:10 GMT
  7. Reply-To: fyu@oracle.com (Francis H. Yu)
  8. Organization: Oracle Corporation
  9. Lines: 13
  10.  
  11. Is there any way to let a C program trace back to the function and the
  12. statement in the source file when a Ctrl-C break occur?  I do not want
  13. to run the program in CodeView.
  14.  
  15. I know that I can use signal() to trap SIGINT, but how do I retrieve
  16. the line number in the source code and function call path?  If I
  17. compile with CodeView debugging flags, the information must be there.
  18.  
  19. Please kindly reply to fyu@oracle.com.  Thanks.
  20. -- 
  21. Francis H. Yu
  22. Oracle Corporation, 500 Oracle Parkway, Box 659504, Redwood Shores, CA  94065
  23. Email:  fyu@shanghai.oracle.com  Voice:  (415) 506-3129  FAX:  (415) 506-7103
  24.