home *** CD-ROM | disk | FTP | other *** search
- 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
- Newsgroups: comp.os.msdos.programmer
- From: fyu@shanghai.oracle.com (Francis H. Yu)
- Subject: Tracing function call path on Ctrl-C break?
- Message-ID: <1993Jan26.194939.1326@oracle.us.oracle.com>
- Originator: fyu@fyusparc2.us.oracle.com
- Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
- Nntp-Posting-Host: fyusparc2.us.oracle.com
- Organization: Oracle Corporation
- Date: Tue, 26 Jan 1993 19:49:39 GMT
- X-Disclaimer: This message was written by an unauthenticated user
- at Oracle Corporation. The opinions expressed are those
- of the user and not necessarily those of Oracle.
- Lines: 13
-
- 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
-