This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Fwd: How to use gcov even when segmentation fault happens
- From: Bui Hoang Duc ëìíë <ducbuihoang at gmail dot com>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 11 Apr 2012 15:25:46 +0900
- Subject: Fwd: How to use gcov even when segmentation fault happens
- References: <CAGsYarK0-xJH_wfcTL=OiTRX8imOaqheeGbvz4cSpppLJxeVBg@mail.gmail.com>
Dear all,
I am studying about locating faults in a program automatically.
Therefore, I need to get code coverage when a program encounters a
segmentation fault.
However, gcov does not work as segmentation fault causes a program to
exit abnormally.
Could you give me some suggestion to make gcov to work in the case a
segmentation fault happens? Or any other alternative way to get code
coverage in this case?
Best regards,
Duke