Article View: comp.os.msdos.programmer
Article #7807Tracing function call path on Ctrl-C break?
From: Francis H. Yu
Date: Wed, 27 Jan 1993 00:39
Date: Wed, 27 Jan 1993 00:39
13 lines
1056 bytes
1056 bytes
Is there any way to let a C program trace back to the function and the statement in the source file when a Ctrl-C break occur? I do not want to run the program in CodeView. I know that I can use signal() to trap SIGINT, but how do I retrieve the line number in the source code and function call path? If I compile with CodeView debugging flags, the information must be there. Please kindly reply to fyu@oracle.com. Thanks. -- Francis H. Yu Oracle Corporation, 500 Oracle Parkway, Box 659504, Redwood Shores, CA 94065 Email: fyu@shanghai.oracle.com Voice: (415) 506-3129 FAX: (415) 506-7103
Technical Details
Message-ID:
<4406@novavax.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!elroy.jpl.nasa.gov!usc!howland.reston.ans.net!bogus.sura.net!udel!gatech!uflorida!novavax!francisShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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 From: francis@novavax.UUCP (Francis H. Yu) Newsgroups: comp.os.msdos.programmer Subject: Tracing function call path on Ctrl-C break? Message-ID: <4406@novavax.UUCP> Date: 27 Jan 93 00:39:10 GMT Reply-To: fyu@oracle.com (Francis H. Yu) Organization: Oracle Corporation Lines: 13