Fwd: How to use gcov even when segmentation fault happens

Bui Hoang Duc 부이황득 ducbuihoang@gmail.com
Wed Apr 11 06:26:00 GMT 2012


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



More information about the Gcc-help mailing list