From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7693 invoked by alias); 7 Aug 2014 21:11:02 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 7591 invoked by uid 89); 7 Aug 2014 21:11:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qg0-f51.google.com Received: from mail-qg0-f51.google.com (HELO mail-qg0-f51.google.com) (209.85.192.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 07 Aug 2014 21:10:59 +0000 Received: by mail-qg0-f51.google.com with SMTP id a108so4987479qge.24 for ; Thu, 07 Aug 2014 14:10:57 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.17.81 with SMTP id 75mr16972540qgc.36.1407445856914; Thu, 07 Aug 2014 14:10:56 -0700 (PDT) Received: by 10.140.101.206 with HTTP; Thu, 7 Aug 2014 14:10:56 -0700 (PDT) Date: Thu, 07 Aug 2014 21:11:00 -0000 Message-ID: Subject: line coverage problem with gcov From: Ciro Ceissler To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00059.txt.bz2 Hello, I trying to do coverage using gcov and can't reach 100% for line coverage, for example: #####: 32: SC_MODULE(test) { -: 33: sc_in clk; -: 34: sc_in arst_n; -: 35: -: 36: void func1 (); -: 37: void func2 (); -: 38: 18: 39: SC_CTOR(test) { 18: 40: SC_CTHREAD(func1, clk.pos()) 18: 41: async_reset_signal_is(arst_n, false); -: 42: 18: 43: SC_CTHREAD(func2, clk.pos()); 18: 44: async_reset_signal_is(arst_n, false); -: 45: -: 46: } // end of SC_CTOR -: 47: }; // end of SC_MODULE >From other project, I have another behavior (just put a stub from module), here above: 18: 32: SC_MODULE(test2) { -: 33: sc_in clk; -: 34: sc_in arst_n; -: 35: 18: 36: void func1 (); 18: 37: void func2 (); -: 38: 18: 39: SC_CTOR(test2) { 18: 40: SC_CTHREAD(func1, clk.pos()) 18: 41: async_reset_signal_is(arst_n, false); -: 42: 18: 43: SC_CTHREAD(func2, clk.pos()); 18: 44: async_reset_signal_is(arst_n, false); -: 45: -: 46: } // end of SC_CTOR -: 47: }; // end of SC_MODULE I don't understand why SC_MODULE wasn't covered from the first example, but SC_CTOR was. Can anyone tell me why this happen or could suggest another tool for coverage? Thanks, -- Ciro Ceissler