Debian

Available patches from Ubuntu

To see Ubuntu differences wrt. to Debian, write down a grep-dctrl query identifying the packages you're interested in:
grep-dctrl -n -sPackage Sources.Debian
(e.g. -FPackage linux-ntfs or linux-ntfs)

Modified packages are listed below:

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: ggcov

ggcov (0.9+20190314-0ubuntu1) disco; urgency=medium * Build from the gcc8-support branch. -- Matthias Klose <doko@ubuntu.com> Thu, 14 Mar 2019 11:43:03 +0100

Modifications :
  1. Download patch ltmain.sh
  2. Download patch lib/templates/Makefile.am

    --- 0.9-21/lib/templates/Makefile.am 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/lib/templates/Makefile.am 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,40 @@ +# +# ggcov - A GTK frontend for exploring gcov coverage data +# Copyright (c) 2001-2015 Greg Banks <gnb@users.sourceforge.net> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +PAGE_TEMPLATES= index.html source.html tree.html functions.html +STATIC_FILES= ggcov.css ncXL7RzcB_120x120.png +FRAGMENTS= foot.html head.html + +EXTRA_DIST= $(PAGE_TEMPLATES:.html=.html.in) $(STATIC_FILES) $(FRAGMENTS) + +templatesdir= $(libdir)/templates +templates_DATA= $(PAGE_TEMPLATES) $(STATIC_FILES) static.files + +$(PAGE_TEMPLATES): %: %.in head.html foot.html + cat head.html $< foot.html > $@ + +static.files: + ( \ + echo "# List of static files" ;\ + for f in $(STATIC_FILES) ; do \ + echo "$$f" ;\ + done ;\ + ) > $@ + +CLEANFILES= $(PAGE_TEMPLATES) Binary files 0.9-21/lib/templates/ncXL7RzcB_120x120.png and 0.9+20190314-0ubuntu1/lib/templates/ncXL7RzcB_120x120.png differ
  3. Download patch lib/templates/.gitignore

    --- 0.9-21/lib/templates/.gitignore 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/lib/templates/.gitignore 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,5 @@ +functions.html +index.html +source.html +static.files +tree.html
  4. Download patch debian/patches/hurd.patch

    --- 0.9-21/debian/patches/hurd.patch 2018-05-15 10:44:37.000000000 +0000 +++ 0.9+20190314-0ubuntu1/debian/patches/hurd.patch 2019-03-10 10:28:28.000000000 +0000 @@ -3,13 +3,11 @@ Description: Minor fix needed for GNU Hu Forwarded: no Last-Updated: 2014-04-10 -Index: ggcov-0.9/src/filetest.c -=================================================================== ---- ggcov-0.9.orig/src/filetest.c 2014-04-08 15:13:01.000000000 +0100 -+++ ggcov-0.9/src/filetest.c 2014-04-08 15:28:39.912494641 +0100 +--- a/src/filetest.c ++++ b/src/filetest.c @@ -8,6 +8,11 @@ - #define BASEDIR "/tmp" - #define TESTDIR BASEDIR"/ggcov.filename.test" + #define BASEDIR "/tmp" + #define TESTDIR BASEDIR"/ggcov.filename.test" +/* PATH_MAX not defined on Hurd */ +#ifndef PATH_MAX
  5. Download patch src/callswin.H

    --- 0.9-21/src/callswin.H 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/src/callswin.H 2019-03-10 09:52:53.000000000 +0000 @@ -1,17 +1,17 @@ /* * ggcov - A GTK frontend for exploring gcov coverage data * Copyright (c) 2001-2005 Greg Banks <gnb@users.sourceforge.net> - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  6. Download patch php/lib/callgraph.php
  7. Download patch scripts/Makefile.in
  8. Download patch doc/ggcov-run.1

    --- 0.9-21/doc/ggcov-run.1 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/doc/ggcov-run.1 2019-03-10 09:52:53.000000000 +0000 @@ -1,6 +1,6 @@ .\" .\" ggcov - A GTK frontend for exploring gcov coverage data -.\" Copyright (c) 2003-2011 Greg Banks <gnb@users.sourceforge.net> +.\" Copyright (c) 2003-2011 Greg Banks <gnb@fastmail.fm> .\" .\" This program is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by @@ -98,9 +98,9 @@ me$ sudo -u otheruser ggcov-run --gcda-p .EE .SH AUTHOR Written by Greg Banks -.IR <gnb@users.sourceforge.net> . +.IR <gnb@fastmail.fm> . .SH COPYRIGHT -ggcov is Copyright \(co 2001\-2011 Greg Banks \fI<gnb@users.sourceforge.net>\fP. +ggcov is Copyright \(co 2001\-2015 Greg Banks \fI<gnb@fastmail.fm>\fP. .br This is free software; see the COPYING file for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
  9. Download patch src/casecheck.pl
  10. Download patch src/callgraph_diagram.C
  11. Download patch src/callgraphwin.C
  12. Download patch doc/cobertura/coverage.xml

    --- 0.9-21/doc/cobertura/coverage.xml 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/doc/cobertura/coverage.xml 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,33 @@ +<?xml version="1.0"?> + +<coverage line-rate="0.6666666666666666" branch-rate="1.0" lines-covered="2" lines-valid="3" branches-covered="0" branches-valid="0" ccn="0.0" version="1.9" timestamp="1240661209332"> + <sources> + <source>.</source> + </sources> + <packages> + <package name="cobertura" line-rate="0.6666666666666666" branch-rate="1.0" complexity="0.0"> + <classes> + <class name="cobertura.CoverageTest" filename="cobertura/CoverageTest.java" line-rate="0.6666666666666666" branch-rate="1.0" complexity="0.0"> + <methods> + <method name="&lt;init&gt;" signature="()V" line-rate="0.0" branch-rate="1.0"> + <lines> + <line number="3" hits="0" branch="false"/> + </lines> + </method> + <method name="main" signature="([Ljava/lang/String;)V" line-rate="1.0" branch-rate="1.0"> + <lines> + <line number="9" hits="1" branch="false"/> + <line number="10" hits="1" branch="false"/> + </lines> + </method> + </methods> + <lines> + <line number="3" hits="0" branch="false"/> + <line number="9" hits="1" branch="false"/> + <line number="10" hits="1" branch="false"/> + </lines> + </class> + </classes> + </package> + </packages> +</coverage>
  13. Download patch lib/templates/functions.html.in

    --- 0.9-21/lib/templates/functions.html.in 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/lib/templates/functions.html.in 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,23 @@ +<table class="main"> + <thead> + <tr> + <th>Name</th> + <th colspan="2">Coverage</th> + </tr> + </thead> + <tbody> + {{#functions}} + <tr> + <td class="F{{status}}"><a href="{{url}}">{{name}}</a></td> + {{#stats}} + <td class="F{{status}}" width="1%">{{blocks_executed}}/{{blocks_total}}</td> + <td width="1%"> + <div class="BUN" style="width:10em;border:1px solid black;"> + <div class="BCO" style="width:{{blocks_percent}}%;">&nbsp;</div> + </div> + </td> + {{/stats}} + </tr> + {{/functions}} + </tbody> +</table>
  14. Download patch config.sub
  15. Download patch config.guess
  16. Download patch src/callgraph_diagram.H

    --- 0.9-21/src/callgraph_diagram.H 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/src/callgraph_diagram.H 2019-03-10 09:52:53.000000000 +0000 @@ -1,17 +1,17 @@ /* * ggcov - A GTK frontend for exploring gcov coverage data * Copyright (c) 2005 Greg Banks <gnb@users.sourceforge.net> - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA @@ -41,14 +41,14 @@ public: private: struct node_t { - cov_callnode_t *callnode_; + cov_callnode_t *callnode_; cov_scope_t *scope_; int rank_; unsigned int file_; - unsigned int nup_; /* number of incoming arcs from upper ranks */ - unsigned int ndown_; /* number of outgoing arcs to lower ranks */ - int max_rank_; /* lowest rank this node could be pushed to */ - int max_depth_; /* longest path to leaf through this node */ + unsigned int nup_; /* number of incoming arcs from upper ranks */ + unsigned int ndown_; /* number of outgoing arcs to lower ranks */ + int max_rank_; /* lowest rank this node could be pushed to */ + int max_depth_; /* longest path to leaf through this node */ unsigned long generation_; double spread_; double x_, y_, h_; @@ -62,16 +62,17 @@ private: }; int flags_; - unsigned int nup(); - unsigned int ndown(); - gboolean any_self(); - void push_spread_rootwards(double deltaspread); - void push_spread_leafwards(double deltaspread); - static node_t *from_callnode(cov_callnode_t *cn) + unsigned int nup(); + unsigned int ndown(); + gboolean any_self(); + void push_spread_rootwards(double deltaspread); + void push_spread_leafwards(double deltaspread); + static node_t *from_callnode(cov_callnode_t *cn) { return (node_t *)cn->userdata; } - node_t(cov_callnode_t *); + const char *rank_str() const; + node_t(cov_callnode_t *); ~node_t(); };
  17. Download patch git2changelog

    --- 0.9-21/git2changelog 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/git2changelog 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,140 @@ +#!/bin/sh +# +# ggcov - A GTK frontend for exploring gcov coverage data +# Copyright (c) 2001-2011 Greg Banks <gnb@users.sourceforge.net> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# Shell script to build a change log for a new release +# from git logs. The change log will still need some +# manual editing to re-express changes for users, etc. +# + +REV1= +REV2= +PACKAGE=`sed -n -e 's|^AM_INIT_AUTOMAKE(\([^,]\+\),\([^)]\+\))|\1|p' < configure.in` +DRYRUN=no +NREVS=0 +ME="Greg Banks" +EMAIL="gnb@users.sourceforge.net" +DATE_FORMAT="%a %b %_d %H:%M:%S %Y" +CHECKFILE="configure.in" +LOG=ChangeLog +OLDLOG=ChangeLog.$$ +VERBOSE=0 + +canon_tag () +{ + # Usage: canon_tag rev + echo "${PACKAGE}_$1" | tr a-z. A-Z_ +} + +get_last_rev_tag () +{ + git describe --tags HEAD | cut -d- -f1 +} + +get_rev_date () +{ + # Usage: get_rev_data rev + local tag + local gitdate + + tag=`canon_tag $1` + gitdate=`git show --pretty='format:%at' $tag | sed -n -e '1s/ .0000$//p'` + date +"$DATE_FORMAT" -d "$gitdate" +} + +usage () +{ + [ -z "$*" ] || echo "git2changelog: $*" + echo "Usage: git2changelog [--package pkg] [--dryrun] [rev1 [rev2]]" + exit 0 +} + +while [ $# -gt 0 ]; do + case "$1" in + --package=*) PACKAGE=`echo "$1"|sed -e 's|^[^=]*=||g'` ;; + --package) PACKAGE="$2" ; shift ;; + --dryrun) DRYRUN=yes ;; + --help) usage ;; + --verbose) VERBOSE=1 ;; + -*) usage "bad option \"$1\"" ;; + [0-9]*.[0-9]*.[0-9]*|[0-9]*.[0-9]*) + case "$NREVS" in + 0) REV1="$1" ;; + 1) REV2="$1" ;; + *) usage "too many revisions at \"$1\"" ;; + esac + NREVS=`expr $NREVS + 1` + ;; + *) usage "unexpected argument at \"$1\"" ;; + esac + shift +done + +test -z "$PACKAGE" && usage "no package specified" + +if [ -z "$REV1" ]; then + # calculate previous tagged revision by getting + # most recent tag of the correct format + TAG1=`get_last_rev_tag` +else + TAG1=`canon_tag "$REV1"` +fi + +if [ -z "$REV2" ]; then + # Use the magic tag `HEAD' which indicates the + # most recent revision + TAG2="HEAD" + REV2="latest revision" + DATE=`date +"$DATE_FORMAT"` + RELEASE= +else + TAG2=`canon_tag "$REV2"` + DATE=`get_rev_date $REV2` + RELEASE="$REV2" +fi + +# echo "PACKAGE=$PACKAGE" +# echo "REV1=$REV1" +# echo "TAG1=$TAG1" +# echo "REV2=$REV2" +# echo "TAG2=$TAG2" +# echo "DRYRUN=$DRYRUN" +# exit 1 + +( + echo -n "Compiling changes from $PACKAGE tags $TAG1 to $TAG2" + test "$DRYRUN" = no && echo -n " into $LOG" + echo "" +) 1>&2; + +gather_changes () +{ + echo "$DATE $ME <$EMAIL>" + test -z "$RELEASE" || echo " * Release $RELEASE" + git log ${TAG1}..${TAG2} --pretty='format: * %s' -- 2>&1 + echo "" +} + +if [ "$DRYRUN" = yes ] ; then + gather_changes +else + mv $LOG $OLDLOG && \ + gather_changes > $LOG && \ + cat $OLDLOG >> $LOG && \ + rm $OLDLOG +fi
  18. Download patch doc/ggcov-webdb.1

    --- 0.9-21/doc/ggcov-webdb.1 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/doc/ggcov-webdb.1 2019-03-10 09:52:53.000000000 +0000 @@ -1,6 +1,6 @@ .\" .\" ggcov - A GTK frontend for exploring gcov coverage data -.\" Copyright (c) 2005 Greg Banks <gnb@users.sourceforge.net> +.\" Copyright (c) 2015 Greg Banks <gnb@fastmail.fm> .\" .\" This program is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by @@ -64,7 +64,7 @@ which are mentioned in the database. Th that the \fBggcov\fP web pages need, in one bundle which is convenient to copy from the development machine to the web server. Usually this tarball would be extracted into a subdirectory -of \fI/var/ggcov/tests/\fP on the web server. +of \fI/var/cache/ggcov/tests/\fP on the web server. .PP Arguments are used to specify how to find coverage data files. The arguments can combinations of: @@ -107,8 +107,9 @@ When a directory is specified on the com coverage data files recursively in all child directories. .TP \fB\-X\fP \fIsymbols\fP, \fB\-\-suppress\-ifdef=\fP\fIsymbols\fP -Do not include in statistics or summaries, code inside C pre-processor -directives which depend on any of the given \fIsymbols\fP. One or +Suppress code inside C pre-processor directives which depend on +any of the given \fIsymbols\fP. Suppressed code is not included +in statistics or summaries. One or more symbols may be given, separated by commas or whitespace. \fBGgcov\-webdb\fP understands the following subset of the C pre-processor command set: .IP @@ -145,11 +146,11 @@ but whose coverage is not significant. .TP \fB\-Y\fP \fIwords\fP, \fB\-\-suppress\-comment=\fP\fIwords\fP -Do not include in statistics or summaries, code on lines which -also contains a single-line comment comprising only one of the -given \fIwords\fP. One or more symbols may be given, separated -by commas or whitespace. For example, specifying \fB-Y IGNOREME\fP -will suppress the \fIassert()\fP in this code: +Suppress code on lines which also contain a single-line comment +comprising only one of the given \fIwords\fP. Suppressed code is +not included in statistics or summaries. One or more symbols may be +given, separated by commas or whitespace. For example, +specifying \fB-Y IGNOREME\fP will suppress the \fIassert()\fP in this code: .IP .nf unsigned int @@ -166,12 +167,10 @@ code, or other code which is compiled in but whose coverage is not significant. .TP -\fB\-Z\fP \fIstartword,endword,...\fP -.TP -\fB\-\-suppress\-comment-between=\fP\fIstartword,endword,...\fP -Do not include in statistics or summaries, code on lines between -those containing a single-line comment comprising only \fIstartword\fP -and the next single-line comment comprising only \fIendword\fP. +\fB\-Z\fP \fIstartword,endword,...\fP \fB\-\-suppress\-comment-between=\fP\fIstartword,endword,...\fP +Suppress code on lines between those containing a single-line comment +comprising only \fIstartword\fP and the next single-line comment comprising +only \fIendword\fP. Suppressed code is not included in statistics or summaries. Two or more symbols may be given, in pairs, separated by commas or whitespace. For example, \fB-Z STARTIGNORE,ENDIGNORE\fP will suppress the entire function in this code: @@ -197,11 +196,11 @@ Generate intermediate database for all t in the executable \fBa.out\fP (on some platforms only), and install as test \fBfoo\fP in the default tests location. .IP -.B mkdir /var/ggcov/tests/foo +.B mkdir /var/cache/ggcov/tests/foo .br .B ggcov\-webdb -f - a.out | .br -.B " " (cd /var/ggcov/tests/foo ; tar \-xzf \- ) +.B " " (cd /var/cache/ggcov/tests/foo ; tar \-xzf \- ) .br .PP Generate intermediate database for all the C source in the current directory. @@ -214,9 +213,9 @@ object files and test coverage data file .B ggcov\-webdb /foo/obj/ /foo/cov\-data/ /foo/src/ .SH AUTHOR Written by Greg Banks -.IR <gnb@users.sourceforge.net> . +.IR <gnb@fastmail.fm> . .SH COPYRIGHT -ggcov is Copyright \(co 2001\-2005 Greg Banks \fI<gnb@users.sourceforge.net>\fP. +ggcov is Copyright \(co 2001\-2015 Greg Banks \fI<gnb@fastmail.fm>\fP. .br This is free software; see the COPYING file for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
  19. Download patch src/callgraphwin.H

    --- 0.9-21/src/callgraphwin.H 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/src/callgraphwin.H 2019-03-10 09:52:53.000000000 +0000 @@ -1,17 +1,17 @@ /* * ggcov - A GTK frontend for exploring gcov coverage data * Copyright (c) 2001-2003 Greg Banks <gnb@users.sourceforge.net> - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA @@ -33,7 +33,7 @@ class callgraphwin_t : public window_t public: callgraphwin_t(); ~callgraphwin_t(); - + void set_node(cov_callnode_t *); private: @@ -41,7 +41,7 @@ private: void populate(); #if !GTK2 static void init_clist(GtkCList *clist, - int (*sortfn)(GtkCList *, const void*, const void*)); + int (*sortfn)(GtkCList *, const void*, const void*)); #else static void init_tree_view(GtkTreeView *tv); #endif
  20. Download patch lib/templates/index.html.in

    --- 0.9-21/lib/templates/index.html.in 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/lib/templates/index.html.in 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,31 @@ +{{#stats}} +<table> + <tbody> + <tr> + <td align="right">Lines</td> + <td>{{lines_abslabel}}</td> + <td>{{lines_pclabel}}</td> + </tr> + <tr> + <td align="right">Functions</td> + <td>{{functions_abslabel}}</td> + <td>{{functions_pclabel}}</td> + </tr> + <tr> + <td align="right">Calls</td> + <td>{{calls_abslabel}}</td> + <td>{{calls_pclabel}}</td> + </tr> + <tr> + <td align="right">Branches</td> + <td>{{branches_abslabel}}</td> + <td>{{branches_pclabel}}</td> + </tr> + <tr> + <td align="right">Blocks</td> + <td>{{blocks_abslabel}}</td> + <td>{{blocks_pclabel}}</td> + </tr> + </tbody> +</table> +{{/stats}}
  21. Download patch lib/templates/head.html

    --- 0.9-21/lib/templates/head.html 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/lib/templates/head.html 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,39 @@ +<!-- +ggcov - A GTK frontend for exploring gcov coverage data +Copyright (c) 2001-2015 Greg Banks gnb@fastmail.fm + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +--> +<html> +<head> +<title>ggcov - {{subtitle}}</title> +<link rel="stylesheet" type="text/css" href="ggcov.css"> +</head> +<body> +<div id="header"> +<h1>ggcov</h1> +<p>{{subtitle}}</p> +</div> +<div id="wrap"> + +<div id="nav"> +<ul> +<li><a href="index.html">Index</a> +<li><a href="tree.html">Files</a> +<li><a href="functions.html">Functions</a> +</ul> +</div> + +<div id="body">
  22. Download patch lib/templates/ggcov.css

    --- 0.9-21/lib/templates/ggcov.css 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/lib/templates/ggcov.css 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,152 @@ +body { + color: #000000; + margin: 0px; + padding: 0px; + background: #ffffff; +} +#header { + background: #ffffff; + height: 120px; + padding: 5px; + margin: 0px; + background-image: url("ncXL7RzcB_120x120.png"); + background-position: right; + background-repeat: no-repeat; +} +#header h1 { + text-align: left; + font: 72px verdana,arial,helvetica,sans-serif; + margin: 0px; +} +#header p { + text-align: left; + margin-left: 30px; + font: italic 16px verdana,arial,helvetica,sans-serif; +} +#nav { + background: #afafcf; + color: #000000; +} +#nav li { + display: inline-block; + text-align: left; + padding: 5px 20px 5px 20px; + font: 12pt verdana,arial,helvetica,sans-serif; +} +/* getting Webkit to actually display the hover property + * is surprisingly unobvious... */ +#nav li:hover a, #nav li a:hover { + color: #ffffff; + text-shadow: #404040 2px 2px 2px; + text-decoration: none; + font-weight: bold; +} +#nav a:link { + color: #000000; + text-decoration: none; + font-weight: bold; +} +#nav a:visited { + color: #000000; + text-decoration: none; + font-weight: bold; +} +#footer { + background: #ffffff; + border-top: 3px solid #afafcf; + margin: 0; + width: 100%; + clear: left; +} +#footer p { + font: 8pt verdana,arial,helvetica,sans-serif; + text-align: center; +} +#footer a:link, #footer a:visited { + color: #808080; +} +table.main { + width: 100%; + padding: 10px; + border-spacing: 0px 0px; +} +table.main tr:nth-child(even) { + background: #cccccc; +} +table.main tr:nth-child(odd) { + background: #ffffff; +} +th { + font: 12pt bold verdana,arial,helvetica,sans-serif; + border: 0; + text-align: left; +} +td { + font: 12pt verdana,arial,helvetica,sans-serif; + border: 0; +} +td.Ctext { + font: 12pt lucidatypewriter,lucidasanstypewriter,courier,monospace; + white-space: pre; + margin: 0; +} +.FCO { + color: #00c000; +} +.FCO a:link { + color: #00c000; +} +.FCO a:visited { + color: #00c000; +} +.BCO { + background: #80d080; +} +.FPC { + color: #a0a000; +} +.FPC a:link { + color: #a0a000; +} +.FPC a:visited { + color: #a0a000; +} +.BPC { + background: #d0d080; +} +.FUN { + color: #c00000; +} +.FUN a:link { + color: #c00000; +} +.FUN a:visited { + color: #c00000; +} +.BUN { + background: #d08080; +} +.FUI { + color: #000000; +} +.FUI a:link { + color: #000000; +} +.FUI a:visited { + color: #000000; +} +.BUI { + background: #a0a0a0; +} +.FSU { + color: #000080; +} +.FSU a:link { + color: #000080; +} +.FSU a:visited { + color: #000080; +} +.BSU { + background: #8080d0; +}
  23. Download patch src/common.c
  24. Download patch doc/git-history-coverage.1

    --- 0.9-21/doc/git-history-coverage.1 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/doc/git-history-coverage.1 2019-03-10 09:52:53.000000000 +0000 @@ -1,6 +1,6 @@ .\" .\" ggcov - A GTK frontend for exploring gcov coverage data -.\" Copyright (c) 2003-2011 Greg Banks <gnb@users.sourceforge.net> +.\" Copyright (c) 2003-2015 Greg Banks <gnb@fastmail.fm> .\" .\" This program is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by @@ -74,9 +74,9 @@ program is run using the same \fP--gcda- \fBggcov-run\fP. .SH AUTHOR Written by Greg Banks -.IR <gnb@users.sourceforge.net> . +.IR <gnb@fastmail.fm> . .SH COPYRIGHT -ggcov is Copyright \(co 2001\-2011 Greg Banks \fI<gnb@users.sourceforge.net>\fP. +ggcov is Copyright \(co 2001\-2015 Greg Banks \fI<gnb@fastmail.fm>\fP. .br This is free software; see the COPYING file for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
  25. Download patch install-sh
  26. Download patch debian/patches/conditional-calltree.patch

    --- 0.9-21/debian/patches/conditional-calltree.patch 2018-05-15 10:44:37.000000000 +0000 +++ 0.9+20190314-0ubuntu1/debian/patches/conditional-calltree.patch 2019-03-11 10:58:06.000000000 +0000 @@ -1,26 +1,19 @@ -Index: ggcov-0.9/configure.in -=================================================================== ---- ggcov-0.9.orig/configure.in -+++ ggcov-0.9/configure.in -@@ -68,6 +68,7 @@ else - fi - AC_SUBST(GUIPROG) - -+ - dnl Try to find the Berkeley DB in any of the odd places it might be hiding - DB_LIB_db42="db-4.2" - DB_CPPFLAGS_db42="-I/usr/include/db42" -@@ -410,6 +411,7 @@ CPU_DEFINES= - case "$host_cpu" in - i?86|i86pc) CPU_DEFINES=-DCOV_I386 ;; - x86_64) CPU_DEFINES="-DCOV_AMD64 -DCOV_I386" ;; -+aarch64) CPU_DEFINES="-DCOV_ARM64 " ;; +--- a/configure.ac ++++ b/configure.ac +@@ -443,6 +443,10 @@ x86_64) + AC_DEFINE(COV_AMD64,1,[Building on amd64 platform]) + AC_MSG_RESULT([COV_AMD64 COV_I386]) + ;; ++aarch64) ++ AC_DEFINE(COV_ARM64,1,[Building on arm64 platform]) ++ AC_MSG_RESULT([COV_ARM64]) ++ ;; + *) + AC_MSG_RESULT([]) + ;; +@@ -465,6 +469,34 @@ linux*) + ;; esac - AC_MSG_RESULT($CPU_DEFINES) - AC_SUBST(CPU_DEFINES) -@@ -425,6 +427,34 @@ esac - AC_MSG_RESULT($OS_DEFINES) - AC_SUBST(OS_DEFINES) +# default for calltree +use_calltree=no @@ -53,11 +46,9 @@ Index: ggcov-0.9/configure.in if test x$is_linux = xyes ; then AC_MSG_CHECKING(for Linux distro-specific defines) dnl Are we on RedHat or similar, e.g. CentOS? -Index: ggcov-0.9/src/Makefile.am -=================================================================== ---- ggcov-0.9.orig/src/Makefile.am -+++ ggcov-0.9/src/Makefile.am -@@ -60,9 +60,13 @@ libcov_a_SOURCES= \ +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -68,9 +68,13 @@ libcov_a_SOURCES= \ # This is a sad hack to work around the problem where some # objects need to be unconditionally linked instead of pulled # in from libcov.a on demand. @@ -74,10 +65,8 @@ Index: ggcov-0.9/src/Makefile.am if GUI BASEINCLUDES= $(GGCOV_GUI_CFLAGS) else -Index: ggcov-0.9/src/cov_arm.C -=================================================================== --- /dev/null -+++ ggcov-0.9/src/cov_arm.C ++++ b/src/cov_arm.C @@ -0,0 +1,62 @@ +/* + * ggcov - A GTK frontend for exploring gcov coverage data
  27. Download patch debian/patches/pointer_arithmetic.patch

    --- 0.9-21/debian/patches/pointer_arithmetic.patch 2018-05-15 10:44:37.000000000 +0000 +++ 0.9+20190314-0ubuntu1/debian/patches/pointer_arithmetic.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -Author: Alastair McKinstry <mckinstry@debian.org> -Description: Remove warning on ptr arithmetic as was breaking builds -Last-Updated: 2014-03-24 -Forwarded: no - -Index: ggcov-0.9/configure.in -=================================================================== ---- ggcov-0.9.orig/configure.in 2014-03-24 18:06:31.124849763 +0000 -+++ ggcov-0.9/configure.in 2014-03-24 18:06:31.120849650 +0000 -@@ -280,7 +280,7 @@ - dnl -Wshadow - dnl TODO: -Weffc++ - AC_GCC_ADD_CFLAGS([-Wall -Wchar-subscripts -- -Wpointer-arith -Wsign-compare -+ -Wsign-compare - -pedantic -Wno-long-long]) - - AC_GCC_ADD_CFLAGS([-fno-rtti -fno-exceptions -fno-implement-inlines])
  28. Download patch debian/control

    --- 0.9-21/debian/control 2018-05-15 10:44:37.000000000 +0000 +++ 0.9+20190314-0ubuntu1/debian/control 2019-03-10 12:45:51.000000000 +0000 @@ -8,7 +8,10 @@ Build-Depends: debhelper (>= 10), libiberty-dev, libglib2.0-dev, libxml2-dev, - libdb-dev (>= 4.6.19) + libdb-dev (>= 4.6.19), + libgd-dev, + libglib2.0-dev, + ruby-mustache Maintainer: Alastair McKinstry <mckinstry@debian.org> Standards-Version: 4.1.4 Homepage: https://github.com/ggcov/ggcov
  29. Download patch doc/cobertura/coverage-04.dtd

    --- 0.9-21/doc/cobertura/coverage-04.dtd 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/doc/cobertura/coverage-04.dtd 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,60 @@ +<!-- Portions (C) International Organization for Standardization 1986: + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. +--> + +<!ELEMENT coverage (sources?,packages)> +<!ATTLIST coverage line-rate CDATA #REQUIRED> +<!ATTLIST coverage branch-rate CDATA #REQUIRED> +<!ATTLIST coverage lines-covered CDATA #REQUIRED> +<!ATTLIST coverage lines-valid CDATA #REQUIRED> +<!ATTLIST coverage branches-covered CDATA #REQUIRED> +<!ATTLIST coverage branches-valid CDATA #REQUIRED> +<!ATTLIST coverage complexity CDATA #REQUIRED> +<!ATTLIST coverage version CDATA #REQUIRED> +<!ATTLIST coverage timestamp CDATA #REQUIRED> + +<!ELEMENT sources (source*)> + +<!ELEMENT source (#PCDATA)> + +<!ELEMENT packages (package*)> + +<!ELEMENT package (classes)> +<!ATTLIST package name CDATA #REQUIRED> +<!ATTLIST package line-rate CDATA #REQUIRED> +<!ATTLIST package branch-rate CDATA #REQUIRED> +<!ATTLIST package complexity CDATA #REQUIRED> + +<!ELEMENT classes (class*)> + +<!ELEMENT class (methods,lines)> +<!ATTLIST class name CDATA #REQUIRED> +<!ATTLIST class filename CDATA #REQUIRED> +<!ATTLIST class line-rate CDATA #REQUIRED> +<!ATTLIST class branch-rate CDATA #REQUIRED> +<!ATTLIST class complexity CDATA #REQUIRED> + +<!ELEMENT methods (method*)> + +<!ELEMENT method (lines)> +<!ATTLIST method name CDATA #REQUIRED> +<!ATTLIST method signature CDATA #REQUIRED> +<!ATTLIST method line-rate CDATA #REQUIRED> +<!ATTLIST method branch-rate CDATA #REQUIRED> + +<!ELEMENT lines (line*)> + +<!ELEMENT line (conditions*)> +<!ATTLIST line number CDATA #REQUIRED> +<!ATTLIST line hits CDATA #REQUIRED> +<!ATTLIST line branch CDATA "false"> +<!ATTLIST line condition-coverage CDATA "100%"> + +<!ELEMENT conditions (condition*)> + +<!ELEMENT condition EMPTY> +<!ATTLIST condition number CDATA #REQUIRED> +<!ATTLIST condition type CDATA #REQUIRED> +<!ATTLIST condition coverage CDATA #REQUIRED>
  30. Download patch src/common.h
  31. Download patch php/basic/basic.php

    --- 0.9-21/php/basic/basic.php 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/php/basic/basic.php 2019-03-10 09:52:53.000000000 +0000 @@ -30,7 +30,7 @@ function basic_test_dir() { $test_dir = getenv('GGCOV_TEST_DIR'); if (!$test_dir) - $test_dir = '/var/ggcov/tests'; + $test_dir = '/var/cache/ggcov/tests'; } return $test_dir; }
  32. Download patch lib/Makefile.am

    --- 0.9-21/lib/Makefile.am 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/lib/Makefile.am 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,20 @@ +# +# ggcov - A GTK frontend for exploring gcov coverage data +# Copyright (c) 2001-2015 Greg Banks <gnb@users.sourceforge.net> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +SUBDIRS= templates
  33. Download patch configure.ac
  34. Download patch src/cov_arc.C

    --- 0.9-21/src/cov_arc.C 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/src/cov_arc.C 2019-03-10 09:52:53.000000000 +0000 @@ -1,28 +1,28 @@ /* * ggcov - A GTK frontend for exploring gcov coverage data * Copyright (c) 2001-2005 Greg Banks <gnb@users.sourceforge.net> - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "cov.H" -#include "cov_suppression.H" +#include "cov_priv.H" #include "estring.H" #include "filename.h" +#include "logging.H" -CVSID("$Id: cov_arc.C,v 1.12 2010-05-09 05:37:15 gnb Exp $"); +static logging::logger_t &suppress_log = logging::find_logger("suppress"); /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/ @@ -34,13 +34,13 @@ void cov_arc_t::attach(cov_block_t *from, cov_block_t *to) { idx_ = from->out_arcs_.length(); - + from_ = from; from_->out_arcs_.append(this); if (!call_) from_->out_ninvalid_++; else - from_->out_ncalls_++; + from_->out_ncalls_++; to_ = to; to_->in_arcs_.append(this); @@ -91,13 +91,13 @@ cov_arc_t::total(const list_t<cov_arc_t> { count_t total = 0; list_iterator_t<cov_arc_t> iter; - + for (iter = list.first() ; iter != (cov_arc_t *)0 ; ++iter) { /* Some of the counts will be invalid, but they are zero, so adding it in also doesn't hurt. */ cov_arc_t *a = (*iter); - if (!a->call_) + if (!a->call_) total += a->count_; } return total; @@ -110,8 +110,8 @@ cov_arc_t::find_invalid(const list_t<cov for (iter = list.first() ; iter != (cov_arc_t *)0 ; ++iter) { - cov_arc_t *a = *iter; - + cov_arc_t *a = *iter; + if (!a->count_valid_ && (may_be_call || !a->call_)) return a; } @@ -125,12 +125,12 @@ cov_arc_t::suppress(const cov_suppressio { if (s && !suppression_) { - if (debug_enabled(D_SUPPRESS)) + if (suppress_log.is_enabled(logging::DEBUG)) { string_var fdesc = from_->describe(); string_var tdesc = to_->describe(); - duprintf3("suppressing arc from %s to %s: %s\n", - fdesc.data(), tdesc.data(), s->describe()); + suppress_log.debug("suppressing arc from %s to %s: %s\n", + fdesc.data(), tdesc.data(), s->describe()); } suppression_ = s; } @@ -142,8 +142,8 @@ cov_arc_t::take_name(char *name) assert(name); name_ = name; - from_->suppress(cov_suppression_t::find(name_, cov_suppression_t::BLOCK_CALLS)); - suppress(cov_suppression_t::find(name_, cov_suppression_t::ARC_CALLS)); + from_->suppress(cov_suppressions.find(name_, cov_suppression_t::BLOCK_CALLS)); + suppress(cov_suppressions.find(name_, cov_suppression_t::ARC_CALLS)); } /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
  35. Download patch src/canvas_scenegen.C

    --- 0.9-21/src/canvas_scenegen.C 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/src/canvas_scenegen.C 2019-03-10 09:52:53.000000000 +0000 @@ -1,34 +1,35 @@ /* * ggcov - A GTK frontend for exploring gcov coverage data * Copyright (c) 2005 Greg Banks <gnb@users.sourceforge.net> - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include "common.h" #include "canvas_scenegen.H" #include "ui.h" #include "canvas_function_popup.H" #include "cov_suppression.H" - -CVSID("$Id: canvas_scenegen.C,v 1.4 2010-05-09 05:37:14 gnb Exp $"); +#include "logging.H" #define RGB_TO_STR(b, rgb) \ snprintf((b), sizeof((b)), "#%02x%02x%02x", \ ((rgb)>>16)&0xff, ((rgb)>>8)&0xff, (rgb)&0xff) static const char BLOCK_KEY[] = "ggcov-canvas-scenegen-block"; +static logging::logger_t &_log = logging::find_logger("scene"); /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/ @@ -86,9 +87,9 @@ canvas_scenegen_t::handle_object(GnomeCa cov_function_t *fn = get_function(); if (fn) { - canvas_function_popup_t *fpop = new canvas_function_popup_t(item, fn); - fpop->set_foreground(border_color()); - fpop->set_background(fill_color()); + canvas_function_popup_t *fpop = new canvas_function_popup_t(item, fn); + fpop->set_foreground(border_color()); + fpop->set_background(fill_color()); return; } @@ -117,12 +118,22 @@ canvas_scenegen_t::box(double x, double { GnomeCanvasItem *item; + if (_log.is_enabled(logging::DEBUG)) + { + int cx1, cy1, cx2, cy2; + gnome_canvas_w2c(canvas_, x, y, &cx1, &cy1); + gnome_canvas_w2c(canvas_, x+w, y+h, &cx2, &cy2); + _log.debug("box(world {x=%g, y=%g, w=%g, h=%g} " + "canvas {x=%d, y=%d, w=%d, h=%d})\n", + x, y, w, h, cx1, cy1, cx2-cx1, cy2-cy1); + } + item = gnome_canvas_item_new(root_, GNOME_TYPE_CANVAS_RECT, - "x1", x, - "y1", y, - "x2", x+w, - "y2", y+h, - "fill_color", fill_color(), + "x1", x, + "y1", y, + "x2", x+w, + "y2", y+h, + "fill_color", fill_color(), "outline_color",border_color(), #if GTK2 "width_pixels", (border_flag_ ? 1 : 0), @@ -143,16 +154,26 @@ canvas_scenegen_t::textbox( { GnomeCanvasItem *item; + if (_log.is_enabled(logging::DEBUG)) + { + int cx1, cy1, cx2, cy2; + gnome_canvas_w2c(canvas_, x, y, &cx1, &cy1); + gnome_canvas_w2c(canvas_, x+w, y+h, &cx2, &cy2); + _log.debug("textbox(world {x=%g, y=%g, w=%g, h=%g} " + "canvas {x=%d, y=%d, w=%d, h=%d}, text=\"%s\"\n", + x, y, w, h, cx1, cy1, cx2-cx1, cy2-cy1, text); + } + item = gnome_canvas_item_new(root_, GNOME_TYPE_CANVAS_TEXT, - "text", text, - "font", "fixed", - "fill_color", border_color(), - "x", x, - "y", y, - "clip", TRUE, - "clip_width", w, - "clip_height", h, - "anchor", GTK_ANCHOR_NORTH_WEST, + "text", text, + "font", "fixed", + "fill_color", border_color(), + "x", x, + "y", y, + "clip", TRUE, + "clip_width", w, + "clip_height", h, + "anchor", GTK_ANCHOR_NORTH_WEST, (char *)0); handle_object(item); } @@ -192,14 +213,15 @@ canvas_scenegen_t::polyline_end(gboolean if (!points_.num_points) return; + _log.debug("polyline([...%u...])\n", points_.num_points); item = gnome_canvas_item_new(root_, GNOME_TYPE_CANVAS_LINE, - "points", &points_, - "first_arrowhead", first_arrow_flag_, - "last_arrowhead", arrow, - "arrow_shape_a", arrow_size_ * arrow_shape_[0], - "arrow_shape_b", arrow_size_ * arrow_shape_[1], - "arrow_shape_c", arrow_size_ * arrow_shape_[2], - "fill_color", fill_color(), + "points", &points_, + "first_arrowhead", first_arrow_flag_, + "last_arrowhead", arrow, + "arrow_shape_a", arrow_size_ * arrow_shape_[0], + "arrow_shape_b", arrow_size_ * arrow_shape_[1], + "arrow_shape_c", arrow_size_ * arrow_shape_[2], + "fill_color", fill_color(), /* setting width_pixels screws up the arrow heads !?!? */ (char *)0); handle_object(item); @@ -219,7 +241,7 @@ static void describe_status(estring &txt } else { - txt.append_printf("executed "GNB_U64_DFMT" times\n", count); + txt.append_printf("executed %llu times\n", (unsigned long long)count); } }
  36. Download patch src/canvas_function_popup.C
  37. Download patch doc/cobertura/README.cobertura

    --- 0.9-21/doc/cobertura/README.cobertura 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/doc/cobertura/README.cobertura 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,15 @@ +Here are some resources I used when developing the Cobertura +report support for ggcov. + + * The Cobertura software is at http://cobertura.sourceforge.net/ + and their latest published DTDs is available at + http://cobertura.sourceforge.net/xml/coverage-04.dtd + + coverage-04.dtd - most recent DTD for Cobertura reports + + * I found a nice small example at http://coveragegoalmanager.googlecode.com/ + which is under the Apache Licence v2.0 + + CoverageTest.java - simple test program in Java + coverage.xml - example Cobertura report for CoverageTest.java +
  38. Download patch build/vagrant/ubuntu.sh

    --- 0.9-21/build/vagrant/ubuntu.sh 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/build/vagrant/ubuntu.sh 2019-03-12 08:27:29.000000000 +0000 @@ -0,0 +1,33 @@ +# Setup C development environment and prereqs + +# +# Use ppa: ubuntu-toolchain-r/test in the VM yaml file to get toolchain test builds +# +<% if @ppa %> +add-apt-repository -y ppa:<%= @ppa %> +<% end %> +apt-get update +apt-get install -y \ + <% if @gcc_version %>gcc-<%= @gcc_version %><% else %>gcc<% end %> \ + <% if @gcc_version %>g++-<%= @gcc_version %><% else %>g++<% end %> \ + git autoconf automake libtool pkg-config \ + libglade2-dev libgnomeui-dev libgconf2-dev libglib2.0-dev \ + libxml2-dev binutils-dev libgd-dev libdb-dev ruby-mustache \ + tasksel + +# Newer Ubuntu needs the libiberty-dev package installed to +# build with BFD; it was split out from binutils some time ago +# So attempt to install it if the name exists +ee=`apt-get install --print-uris libiberty-dev | grep '^E: Unable to locate package' > /dev/null` +[ -z "$ee" ] && apt-get install -y libiberty-dev + +<% if @gcc_version %> +update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-<%= @gcc_version %> \ + 60 --slave /usr/bin/g++ g++ /usr/bin/g++-<%= @gcc_version %> +<% end %> + +# this trick from +# http://people.skolelinux.org/pere/blog/Calling_tasksel_like_the_installer__while_still_getting_useful_output.html +export DEBIAN_FRONTEND=noninteractive +cmd="$(tasksel --test --new-install install gnome-desktop | sed 's/debconf-apt-progress -- //')" +$cmd
  39. Download patch php/lib/.gitignore

    --- 0.9-21/php/lib/.gitignore 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/php/lib/.gitignore 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,2 @@ +Makefile +Makefile.in
  40. Download patch buildrpm
  41. Download patch build/vagrant/debian820.yaml

    --- 0.9-21/build/vagrant/debian820.yaml 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/build/vagrant/debian820.yaml 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,2 @@ +box: "debian/jessie64" +script_file: "ubuntu.sh"
  42. Download patch src/cov_arc.H

    --- 0.9-21/src/cov_arc.H 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/src/cov_arc.H 2019-03-10 09:52:53.000000000 +0000 @@ -1,17 +1,17 @@ /* * ggcov - A GTK frontend for exploring gcov coverage data * Copyright (c) 2001-2005 Greg Banks <gnb@users.sourceforge.net> - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA @@ -32,28 +32,28 @@ public: const char * name() const { - return name_; + return name_; } count_t count() const { - return count_; + return count_; } - + unsigned int aindex() const { - return idx_; + return idx_; } boolean is_call() const { - return call_; + return call_; } boolean is_fall_through() const { - return fall_through_; + return fall_through_; } boolean is_return() const @@ -63,7 +63,7 @@ public: } const char *call_name() const { - return name_; + return name_; } const cov_location_t *call_location() const { @@ -73,25 +73,25 @@ public: * of the block. Thus we can avoid storing the call location * explicitly, even though we do get it from either the object * file scan or the 12bp file. - * + * * Actually this isn't true of calls to functions marked * with attribute((pure)), which don't cause a bb break but * are instead subject to optimisation within a bb. However * gcc doesn't instrument those calls, so there's point trying * to handle them. */ - return from_->locations().tail(); + return from_->locations().tail(); } - + cov_block_t * from() const { - return from_; + return from_; } cov_block_t * to() const { - return to_; + return to_; } const cov_location_t * @@ -121,13 +121,13 @@ private: void set_count(count_t count); static count_t total(const list_t<cov_arc_t> &list); static cov_arc_t *find_invalid(const list_t<cov_arc_t> &list, - gboolean may_be_call); - void take_name(char *name); /* takes over string */ + gboolean may_be_call); + void take_name(char *name); /* takes over string */ cov_block_t *from_, *to_; - unsigned int idx_; /* serial number in from->out_arcs */ + unsigned int idx_; /* serial number in from->out_arcs */ count_t count_; - string_var name_; /* name of function called (if known) or NULL */ + string_var name_; /* name of function called (if known) or NULL */ boolean on_tree_:1; boolean call_:1; boolean fall_through_:1; @@ -137,7 +137,7 @@ private: friend class cov_file_t; friend class cov_function_t; friend class cov_block_t; - friend void dump_arc(FILE *, cov_arc_t *a); + friend void dump_arc(cov_arc_t *a); };
  43. Download patch src/canvas_scenegen.H

    --- 0.9-21/src/canvas_scenegen.H 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/src/canvas_scenegen.H 2019-03-10 09:52:53.000000000 +0000 @@ -1,17 +1,17 @@ /* * ggcov - A GTK frontend for exploring gcov coverage data * Copyright (c) 2005 Greg Banks <gnb@users.sourceforge.net> - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  44. Download patch src/canvas_function_popup.H

    --- 0.9-21/src/canvas_function_popup.H 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/src/canvas_function_popup.H 2019-03-10 09:52:53.000000000 +0000 @@ -1,17 +1,17 @@ /* * ggcov - A GTK frontend for exploring gcov coverage data * Copyright (c) 2005 Greg Banks <gnb@users.sourceforge.net> - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA @@ -49,7 +49,7 @@ private: struct widgets_t { - int refcount_; + int refcount_; canvas_function_popup_t *current_; GtkWidget *popup_; GtkWidget *border_; @@ -60,7 +60,7 @@ private: GtkWidget *menu_; }; static widgets_t widgets_; - + GnomeCanvasItem *item_; cov_function_t *function_; char foreground_[32];
  45. Download patch doc/.gitignore

    --- 0.9-21/doc/.gitignore 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/doc/.gitignore 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,3 @@ +Makefile.in +Makefile +*.bck
  46. Download patch debian/patches/dllibs.patch

    --- 0.9-21/debian/patches/dllibs.patch 2018-05-15 10:44:37.000000000 +0000 +++ 0.9+20190314-0ubuntu1/debian/patches/dllibs.patch 2019-03-10 10:31:04.000000000 +0000 @@ -3,12 +3,12 @@ Description: Need to link to -ldl Forwarded: no Last-Updated: 2015-11-20 ---- ggcov-0.9.orig/src/Makefile.am -+++ ggcov-0.9/src/Makefile.am -@@ -97,8 +97,8 @@ INCLUDES= $(BASEINCLUDES) -DPKGDATADIR=" +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -104,8 +104,8 @@ AM_CPPFLAGS= $(BASEINCLUDES) -DPKGDATADI + -DPREFIX="\"$(prefix)\"" -DDATADIR="\"$(datadir)\"" \ -DLIBDIR="\"$(libdir)\"" -DSYSCONFDIR="\"$(sysconfdir)\"" \ - -DDEBUG=$(DEBUG) -DUI_DEBUG=$(UI_DEBUG) \ - $(CPU_DEFINES) $(OS_DEFINES) + -DUI_DEBUG=$(UI_DEBUG) -ggcov_LDADD= libcov.a libcommon.a $(GGCOV_GUI_LIBS) $(BFD_LIBS) -lX11 -CLI_LIBS= libcov.a libcommon.a $(GGCOV_CLI_LIBS) $(BFD_LIBS) +ggcov_LDADD= libcov.a libcommon.a $(GGCOV_GUI_LIBS) $(BFD_LIBS) -ldl -lz -lX11
  47. Download patch .gitignore

    --- 0.9-21/.gitignore 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/.gitignore 1970-01-01 00:00:00.000000000 +0000 @@ -1,40 +0,0 @@ -*.o -lib*.a -*.lo -*.la -.libs -.deps -COPYING -INSTALL -aclocal.m4 -config.guess -config.sub -config.log -config.status -config.cache -configure -config.h -config.h.in -stamp-h -stamp-h.in -compile -depcomp -install-sh -missing -Makefile.in -Makefile -libtool -ltmain.sh -rpm.d -ggcov.spec -ggcov-*.tar.gz -version.m4 -core.* -ggcov-*.rpm -vg*.log -autom4te.cache -stamp-h1 -.nautilus-metafile.xml -*.bck -.pc -patches
  48. Download patch doc/ggcov.1

    --- 0.9-21/doc/ggcov.1 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/doc/ggcov.1 2019-03-10 09:52:53.000000000 +0000 @@ -1,6 +1,6 @@ .\" .\" ggcov - A GTK frontend for exploring gcov coverage data -.\" Copyright (c) 2003-2004 Greg Banks <gnb@users.sourceforge.net> +.\" Copyright (c) 2003-2015 Greg Banks <gnb@fastmail.fm> .\" .\" This program is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by @@ -32,9 +32,8 @@ So it's basically a GUI replacement for with \fBgcc\fP. .PP \fBGgcov\fP understands all the standard GTK+ and GNOME options, such -as \fB\-display\fP and \fB\-disable\-crash\-dialog\fP. All other arguments -are used to specify how to find coverage data files. The arguments can -combinations of: +as \fB\-display\fP. Most other options are used to specify how to find +and handle coverage data files. The arguments can combinations of: .IP \fIdirectory\fP The directory is scanned for source files, which are handled as if they had been specified on the commandline (except that missing coverage @@ -53,8 +52,7 @@ only available on some platforms (for ex Is any regular file ending in one of the file extensions \fI.c\fP, \fI.cc\fP, \fI.cxx\fP, \fI.cpp\fP, or \fI.C\fP. Source files are matched to their corresponding coverage data files (\fI.gcno\fP and -\fI.gcda\fP files, or \fI.bb\fP, \fI.bbg\fP, and \fI.da\fP files with -older compilers) and object files by searching for a file of the same +\fI.gcda\fP files) and object files by searching for a file of the same basename and the appropriate extension first in the same directory as the source file and then in all the directories specified on the command line (in the order they were specified). @@ -82,15 +80,18 @@ coverage data files recursively in all c .TP \fB\-w\fP \fIwindows\fP, \fB\-\-initial\-windows\fP=\fIwindows\fP -Open the named windows when \fBggcov\fP starts. Window names +Open the named windows when \fBggcov\fP starts. One or more +window names may be given, separated by commas or whitespace. +Defined window names are \fIsummary\fP, \fIfiles\fP, \fIfunctions\fP, \fIcalls\fP, \fIcallbutterfly\fP, \fIcallgraph\fP, \fIlego\fP, \fIsource\fP, and \fIreports\fP. The default window is \fIsummary\fP. .TP \fB\-X\fP \fIsymbols\fP, \fB\-\-suppress\-ifdef=\fP\fIsymbols\fP -Do not include in statistics or summaries, code inside C pre-processor -directives which depend on any of the given \fIsymbols\fP. One or +Suppress code inside C pre-processor directives which depend on +any of the given \fIsymbols\fP. Suppressed code is not included +in statistics or summaries. One or more symbols may be given, separated by commas or whitespace. \fBGgcov\fP understands the following subset of the C pre-processor command set: .IP @@ -127,11 +128,11 @@ but whose coverage is not significant. .TP \fB\-Y\fP \fIwords\fP, \fB\-\-suppress\-comment=\fP\fIwords\fP -Do not include in statistics or summaries, code on lines which -also contains a single-line comment comprising only one of the -given \fIwords\fP. One or more symbols may be given, separated -by commas or whitespace. For example, specifying \fB-Y IGNOREME\fP -will suppress the \fIassert()\fP in this code: +Suppress code on lines which also contain a single-line comment +comprising only one of the given \fIwords\fP. Suppressed code is +not included in statistics or summaries. One or more symbols may be +given, separated by commas or whitespace. For example, +specifying \fB-Y IGNOREME\fP will suppress the \fIassert()\fP in this code: .IP .nf unsigned int @@ -148,12 +149,10 @@ code, or other code which is compiled in but whose coverage is not significant. .TP -\fB\-Z\fP \fIstartword,endword,...\fP -.TP -\fB\-\-suppress\-comment-between=\fP\fIstartword,endword,...\fP -Do not include in statistics or summaries, code on lines between -those containing a single-line comment comprising only \fIstartword\fP -and the next single-line comment comprising only \fIendword\fP. +\fB\-Z\fP \fIstartword,endword,...\fP \fB\-\-suppress\-comment-between=\fP\fIstartword,endword,...\fP +Suppress code on lines between those containing a single-line comment +comprising only \fIstartword\fP and the next single-line comment comprising +only \fIendword\fP. Suppressed code is not included in statistics or summaries. Two or more symbols may be given, in pairs, separated by commas or whitespace. For example, \fB-Z STARTIGNORE,ENDIGNORE\fP will suppress the entire function in this code: @@ -192,9 +191,9 @@ object files and test coverage data file .B ggcov /foo/obj/ /foo/cov\-data/ /foo/src/ .SH AUTHOR Written by Greg Banks -.IR <gnb@users.sourceforge.net> . +.IR <gnb@fastmail.fm> . .SH COPYRIGHT -ggcov is Copyright \(co 2001\-2005 Greg Banks \fI<gnb@users.sourceforge.net>\fP. +ggcov is Copyright \(co 2001\-2015 Greg Banks \fI<gnb@fastmail.fm>\fP. .br This is free software; see the COPYING file for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
  49. Download patch php/lib/Makefile.in
  50. Download patch doc/HOWTO.web

    --- 0.9-21/doc/HOWTO.web 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/doc/HOWTO.web 2019-03-10 09:52:53.000000000 +0000 @@ -51,10 +51,10 @@ install software, installation should be 3. restart the web server, e.g. www# service httpd restart -4. install one or more tests in subdirectories of /var/ggcov/web/tests/, e.g. +4. install one or more tests in subdirectories of /var/cache/ggcov/web/tests/, e.g. dev$ ggcov-webdb *.c dev$ scp ggcov.webdb.tgz root@www:/tmp - web# cd /var/ggcov/web/tests + web# cd /var/cache/ggcov/web/tests web# mkdir foo ; cd foo web# tar -xzf /tmp/ggcov.webdb.tgz
  51. Download patch missing
  52. Download patch debian/patches/gcc-6-fixes.patch

    --- 0.9-21/debian/patches/gcc-6-fixes.patch 2018-05-15 10:44:37.000000000 +0000 +++ 0.9+20190314-0ubuntu1/debian/patches/gcc-6-fixes.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -Author: Alastair McKinstry <mckinstry@debian.org> -Description: Fix for gcc-6 build issue. -Origin-Bug: https://bugs.debian.org/811766 -Forwarded: yes -Last-Updated: 2016-06-09 - -Index: ggcov-0.9/src/common.c -=================================================================== ---- ggcov-0.9.orig/src/common.c -+++ ggcov-0.9/src/common.c -@@ -172,7 +172,7 @@ static struct - {"cov", R(D_FILES,D_DUMP)}, - {"ui", R(D_UICORE,D_DIAGWIN)}, - {"none", 0}, --{"all", ~1 /*"all" doesn't get you "verbose"*/}, -+{"all", ~( (unsigned int) 1) /*"all" doesn't get you "verbose"*/}, - {0, 0} - #undef R - #undef U
  53. Download patch src/confsection.C

    --- 0.9-21/src/confsection.C 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/src/confsection.C 2019-03-10 09:52:53.000000000 +0000 @@ -1,17 +1,17 @@ /* * ggcov - A GTK frontend for exploring gcov coverage data * Copyright (c) 2002-2005 Greg Banks <gnb@users.sourceforge.net> - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA @@ -29,11 +29,11 @@ #endif #include "confsection.H" #include "estring.H" - -CVSID("$Id: confsection.C,v 1.11 2010-05-09 05:37:14 gnb Exp $"); +#include "logging.H" hashtable_t<const char, confsection_t> *confsection_t::all_; static const char filename[] = "ggcov"; +static logging::logger_t &_log = logging::find_logger("ggcov"); /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/ @@ -41,7 +41,7 @@ confsection_t::confsection_t(const char : secname_(secname) { if (all_ == 0) - all_ = new hashtable_t<const char, confsection_t>; + all_ = new hashtable_t<const char, confsection_t>; all_->insert(secname_, this); } @@ -57,10 +57,10 @@ confsection_t * confsection_t::get(const char *name) { confsection_t *cs; - + if (all_ == 0 || - (cs = all_->lookup(name)) == 0) - cs = new confsection_t(name); + (cs = all_->lookup(name)) == 0) + cs = new confsection_t(name); return cs; } @@ -72,7 +72,7 @@ handle_error(const char *name, GError *e { if (e) { - fprintf(stderr, "ERROR: confsection(%s): %s\n", name, e->message); + _log.error("confsection(%s): %s\n", name, e->message); g_error_free(e); } } @@ -116,7 +116,7 @@ confsection_t::get_string(const char *na gboolean defaulted = FALSE; val = gnome_config_get_string_with_default(key.data(), &defaulted); if (defaulted) - val = (deflt == 0 ? 0 : g_strdup(deflt)); + val = (deflt == 0 ? 0 : g_strdup(deflt)); #endif return val; @@ -143,16 +143,16 @@ int confsection_t::get_enum(const char *name, const confenum_t *tbl, int deflt) { string_var val = get_string(name, 0); - + if (val == (char *)0) - return deflt; + return deflt; for ( ; tbl->string != 0 ; tbl++) { - if (!strcasecmp(tbl->string, val)) + if (!strcasecmp(tbl->string, val)) return tbl->value; } - + if (isdigit(val.data()[0])) { char *end = 0; @@ -170,13 +170,13 @@ confsection_t::set_enum(const char *name for ( ; tbl->string != 0 ; tbl++) { - if (value == tbl->value) + if (value == tbl->value) { set_string(name, tbl->string); return; } } - + snprintf(buf, sizeof(buf), "%d", value); set_string(name, buf); } @@ -206,7 +206,7 @@ confsection_t::get_bool(const char *name gboolean defaulted = FALSE; val = gnome_config_get_bool_with_default(key.data(), &defaulted); if (defaulted) - val = deflt; + val = deflt; #endif return val; } @@ -250,7 +250,7 @@ confsection_t::get_int(const char *name, gboolean defaulted = FALSE; val = gnome_config_get_int_with_default(key.data(), &defaulted); if (defaulted) - val = deflt; + val = deflt; #endif return val; } @@ -295,7 +295,7 @@ confsection_t::get_float(const char *nam gboolean defaulted = FALSE; val = gnome_config_get_float_with_default(key.data(), &defaulted); if (defaulted) - val = deflt; + val = deflt; #endif return val; }
  54. Download patch debian/patches/params.patch

    --- 0.9-21/debian/patches/params.patch 2018-05-15 10:44:37.000000000 +0000 +++ 0.9+20190314-0ubuntu1/debian/patches/params.patch 2019-03-10 10:28:31.000000000 +0000 @@ -4,13 +4,11 @@ Description: Definition for PARAMS no lo Forwarded: no Last-Updated: 2014-06-14 -Index: ggcov-0.9/src/libiberty/demangle.h -=================================================================== ---- ggcov-0.9.orig/src/libiberty/demangle.h -+++ ggcov-0.9/src/libiberty/demangle.h -@@ -23,6 +23,10 @@ - - #include <ansidecl.h> +--- a/src/libiberty/demangle.h ++++ b/src/libiberty/demangle.h +@@ -27,6 +27,10 @@ + #define PARAMS(ARGS) ARGS + #endif +#ifndef PARAMS +#define PARAMS(ARGS) ARGS @@ -18,4 +16,4 @@ Index: ggcov-0.9/src/libiberty/demangle. + /* Options passed to cplus_demangle (in 2nd parameter). */ - #define DMGL_NO_OPTS 0 /* For readability... */ + #define DMGL_NO_OPTS 0 /* For readability... */
  55. Download patch configure
  56. Download patch php/basic/callgraph.php

    --- 0.9-21/php/basic/callgraph.php 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/php/basic/callgraph.php 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,24 @@ +<?php +// +// ggcov - A GTK frontend for exploring gcov coverage data +// Copyright (c) 2005 Greg Banks <gnb@users.sourceforge.net> +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// $Id: callgraph.php,v 1.3 2010-05-09 05:37:14 gnb Exp $ +// +require_once 'ggcov/basic/basic.php'; +basic_page(); +?>
  57. Download patch lib/templates/tree.html.in

    --- 0.9-21/lib/templates/tree.html.in 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/lib/templates/tree.html.in 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,28 @@ +<table width="100%" class="main"> + <tbody> + {{#files}} + <tr> + <td> + <div style="position:relative;"> + <div style="position:relative;left:{{indent}}em;" class="F{{status}}"> + {{#is_file?}} + <a href="{{url}}">{{name}}</a> + {{/is_file?}} + {{^is_file?}} + {{name}}/ + {{/is_file?}} + </div> + </div> + </td> + {{#stats}} + <td class="F{{status}}" width="1%">{{blocks_executed}}/{{blocks_total}}</td> + <td width="1%"> + <div class="BUN" style="width:10em;border:1px solid black;"> + <div class="BCO" style="width:{{blocks_percent}}%;">&nbsp;</div> + </div> + </td> + {{/stats}} + </tr> + {{/files}} + </tbody> +</table>
  58. Download patch src/cached_string.C

    --- 0.9-21/src/cached_string.C 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/src/cached_string.C 2019-03-10 09:52:53.000000000 +0000 @@ -19,8 +19,6 @@ #include "cached_string.H" -CVSID("$Id: cached_string.C,v 1.2 2010-05-09 05:37:14 gnb Exp $"); - hashtable_t<const char, char> *cached_string::all_; /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/ @@ -34,13 +32,13 @@ cached_string::get(const char *s) return 0; if (all_ == 0) - all_ = new hashtable_t<const char, char>; + all_ = new hashtable_t<const char, char>; else - p = all_->lookup(s); + p = all_->lookup(s); if (p == 0) { - p = g_strdup(s); + p = g_strdup(s); all_->insert(p, p); } @@ -51,7 +49,7 @@ const char * cached_string::lookup(const char *s) { if (all_ == 0 || s == 0) - return 0; + return 0; return all_->lookup(s); }
  59. Download patch INSTALL
  60. Download patch build/vagrant/kubuntu1404.yaml

    --- 0.9-21/build/vagrant/kubuntu1404.yaml 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/build/vagrant/kubuntu1404.yaml 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,2 @@ +box: "~/Documents/boxes/kubuntu14.04.box" +script_file: "ubuntu.sh"
  61. Download patch src/confsection.H

    --- 0.9-21/src/confsection.H 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/src/confsection.H 2019-03-10 09:52:53.000000000 +0000 @@ -1,17 +1,17 @@ /* * ggcov - A GTK frontend for exploring gcov coverage data * Copyright (c) 2002-2005 Greg Banks <gnb@users.sourceforge.net> - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  62. Download patch doc/cobertura/CoverageTest.java

    --- 0.9-21/doc/cobertura/CoverageTest.java 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/doc/cobertura/CoverageTest.java 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,12 @@ +package cobertura; + +public class CoverageTest { + + /** + * @param args + */ + public static void main(String[] args) { + System.out.println("Hello World"); + } + +}
  63. Download patch build/vagrant/ubuntu1804.yaml

    --- 0.9-21/build/vagrant/ubuntu1804.yaml 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/build/vagrant/ubuntu1804.yaml 2019-03-11 10:55:18.000000000 +0000 @@ -0,0 +1,2 @@ +box: "ubuntu/bionic64" +script_file: "ubuntu.sh"
  64. Download patch build/vagrant/fedora27.yaml

    --- 0.9-21/build/vagrant/fedora27.yaml 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/build/vagrant/fedora27.yaml 2019-03-11 10:55:18.000000000 +0000 @@ -0,0 +1,2 @@ +box: "generic/fedora27" +script_file: "fedora.sh"
  65. Download patch autogen.sh

    --- 0.9-21/autogen.sh 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/autogen.sh 2019-03-10 09:52:53.000000000 +0000 @@ -16,15 +16,8 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# $Id: autogen.sh,v 1.4 2010-05-09 05:37:14 gnb Exp $ # set -x -aclocal || exit 1 -libtoolize -c || exit 1 -autoconf || exit 1 -autoheader || exit 1 -automake -a -c || exit 1 -/bin/rm -rf config.status config.cache autom4te.cache -./configure "$@" || exit 1 +autoreconf -iv || exit 1 +./configure "$@"
  66. Download patch COPYING
  67. Download patch lib/templates/source.html.in

    --- 0.9-21/lib/templates/source.html.in 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/lib/templates/source.html.in 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,27 @@ +<table class="main"> + <thead> + <tr> + <th>Line</th> + <th>Flow</th> + <th>Count</th> + <th>Block(s)</th> + <th>Source</th> + </tr> + </thead> + <tbody> + {{#lines}} + <tr> + <td class="F{{status_short}} Clineno" width="1%"><a name="#L{{lineno}}"></a><a href="#L{{lineno}}">{{lineno}}</a></td> + {{#flow_diagram}} + <td class="Cflow" width="1%" rowspan="{{nlines}}"><img width="{{width}}" height="{{height}}" src="{{url}}"></td> + {{/flow_diagram}} + {{#flow_filler}} + <td class="Cflow" width="1%"></td> + {{/flow_filler}} + <td class="F{{status_short}} Ccount" width="1%">{{count_if_instrumented}}</td> + <td class="F{{status_short}} Cblocks" width="1%">{{blocks}}</td> + <td class="F{{status_short}} Ctext">{{text}}</td> + </tr> + {{/lines}} + </tbody> +</table>
  68. Download patch src/cached_string.H

    --- 0.9-21/src/cached_string.H 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/src/cached_string.H 2019-03-10 09:52:53.000000000 +0000 @@ -1,17 +1,17 @@ /* * ggcov - A GTK frontend for exploring gcov coverage data * Copyright (c) 2005 Greg Banks <gnb@users.sourceforge.net> - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA @@ -40,7 +40,7 @@ private: static hashtable_t<const char, char> *all_; const char *data_; - + public: // default ctor cached_string() @@ -50,59 +50,59 @@ public: // const initialisation ctor cached_string(const char *s) { - data_ = get(s); + data_ = get(s); } // non-const initialisation ctor cached_string(char *s) { - data_ = get(s); + data_ = get(s); g_free(s); } // copy c'tor cached_string(const cached_string &o) { - data_ = o.data_; + data_ = o.data_; } - // dtor + // dtor ~cached_string() { } const char *data() const { - return data_; + return data_; } operator const char *() const { - return data_; + return data_; } // assignment operators const char *operator=(const char *s) { - return data_ = get(s); + return data_ = get(s); } const char *operator=(char *s) { - data_ = get(s); + data_ = get(s); g_free(s); return data_; } // equality operator int operator==(const char *s) { - return (data_ == lookup(s)); + return (data_ == lookup(s)); } unsigned int length() const { - return (data_ == 0 ? 0 : strlen(data_)); + return (data_ == 0 ? 0 : strlen(data_)); } // take() is pretty superfluous but it might // make converting string_var code easier. char *take() { - char *d = (data_ == 0 ? 0 : g_strdup(data_)); + char *d = (data_ == 0 ? 0 : g_strdup(data_)); data_ = 0; return d; }
  69. Download patch src/check_scenegen.C

    --- 0.9-21/src/check_scenegen.C 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/src/check_scenegen.C 2019-03-10 09:52:53.000000000 +0000 @@ -1,25 +1,26 @@ /* * ggcov - A GTK frontend for exploring gcov coverage data * Copyright (c) 2005 Greg Banks <gnb@users.sourceforge.net> - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "check_scenegen.H" +#include "logging.H" -CVSID("$Id: check_scenegen.C,v 1.5 2010-05-09 05:37:14 gnb Exp $"); +static logging::logger_t &_log = logging::find_logger("scene"); /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/ @@ -168,14 +169,15 @@ check_scenegen_t::check_box_intersection break; if (a->bbox_.intersects(b->bbox_)) { - fprintf(stderr, "boxes %s and %s intersect\n", - a->name_.data(), b->name_.data()); + _log.error("boxes %s and %s intersect\n", + a->name_.data(), b->name_.data()); n_box_intersect++; } } } - fprintf(stderr, "%u boxes, %u box intersections\n", - boxes_.length(), n_box_intersect); + if (n_box_intersect > 0) + _log.error("%u boxes, %u box intersections\n", + boxes_.length(), n_box_intersect); return (n_box_intersect == 0); }
  70. Download patch debian/patches/series

    --- 0.9-21/debian/patches/series 2018-05-15 10:44:37.000000000 +0000 +++ 0.9+20190314-0ubuntu1/debian/patches/series 2019-03-14 10:43:03.000000000 +0000 @@ -1,12 +1,8 @@ desktop_apps.patch as_needed.patch -pointer_arithmetic.patch binutils-gold.patch -c++.patch -new_gcc.patch hurd.patch params.patch dllibs.patch -gcc-6-fixes.patch varargs.patch conditional-calltree.patch
  71. Download patch src/argstest.C
  72. Download patch configure.in
  73. Download patch debian/patches/new_gcc.patch
  74. Download patch debian/patches/binutils-gold.patch

    --- 0.9-21/debian/patches/binutils-gold.patch 2018-05-15 10:44:37.000000000 +0000 +++ 0.9+20190314-0ubuntu1/debian/patches/binutils-gold.patch 2019-03-10 10:27:32.000000000 +0000 @@ -4,14 +4,12 @@ Forwarded: no Last-UpdatedL 2014-04-08 Bug-Debian: http://bugs.debian.org/608735 -Index: ggcov-0.9/src/Makefile.am -=================================================================== ---- ggcov-0.9.orig/src/Makefile.am 2014-04-08 15:09:05.811295313 +0100 -+++ ggcov-0.9/src/Makefile.am 2014-04-08 15:09:50.296403292 +0100 -@@ -97,7 +97,7 @@ +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -104,7 +104,7 @@ AM_CPPFLAGS= $(BASEINCLUDES) -DPKGDATADI + -DPREFIX="\"$(prefix)\"" -DDATADIR="\"$(datadir)\"" \ -DLIBDIR="\"$(libdir)\"" -DSYSCONFDIR="\"$(sysconfdir)\"" \ - -DDEBUG=$(DEBUG) -DUI_DEBUG=$(UI_DEBUG) \ - $(CPU_DEFINES) $(OS_DEFINES) + -DUI_DEBUG=$(UI_DEBUG) -ggcov_LDADD= libcov.a libcommon.a $(GGCOV_GUI_LIBS) $(BFD_LIBS) +ggcov_LDADD= libcov.a libcommon.a $(GGCOV_GUI_LIBS) $(BFD_LIBS) -lX11 CLI_LIBS= libcov.a libcommon.a $(GGCOV_CLI_LIBS) $(BFD_LIBS)
  75. Download patch src/cov_bfd.C
  76. Download patch src/check_scenegen.H

    --- 0.9-21/src/check_scenegen.H 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/src/check_scenegen.H 2019-03-10 09:52:53.000000000 +0000 @@ -1,17 +1,17 @@ /* * ggcov - A GTK frontend for exploring gcov coverage data * Copyright (c) 2005 Greg Banks <gnb@users.sourceforge.net> - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA @@ -48,7 +48,7 @@ public: private: struct box_t { - string_var name_; + string_var name_; dbounds_t bbox_; };
  77. Download patch compile
  78. Download patch aclocal.m4
  79. Download patch php/basic/.gitignore

    --- 0.9-21/php/basic/.gitignore 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/php/basic/.gitignore 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,2 @@ +Makefile +Makefile.in
  80. Download patch src/argparse.C
  81. Download patch debian/patches/as_needed.patch

    --- 0.9-21/debian/patches/as_needed.patch 2018-05-15 10:44:37.000000000 +0000 +++ 0.9+20190314-0ubuntu1/debian/patches/as_needed.patch 2019-03-10 10:24:06.000000000 +0000 @@ -3,12 +3,10 @@ Description: Link to libs as needed only Forwarded: no Last-Updated: 2014-04-08 -Index: ggcov.git/src/Makefile.am -=================================================================== ---- ggcov.git.orig/src/Makefile.am 2014-04-08 15:02:27.000000000 +0100 -+++ ggcov.git/src/Makefile.am 2014-04-08 15:03:53.887534463 +0100 -@@ -99,6 +99,7 @@ - $(CPU_DEFINES) $(OS_DEFINES) +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -106,6 +106,7 @@ AM_CPPFLAGS= $(BASEINCLUDES) -DPKGDATADI + -DUI_DEBUG=$(UI_DEBUG) ggcov_LDADD= libcov.a libcommon.a $(GGCOV_GUI_LIBS) $(BFD_LIBS) CLI_LIBS= libcov.a libcommon.a $(GGCOV_CLI_LIBS) $(BFD_LIBS) +ggcov_LDFLAGS= -Wl,--as-needed
  82. Download patch Makefile.am

    --- 0.9-21/Makefile.am 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/Makefile.am 2019-03-10 09:52:53.000000000 +0000 @@ -19,7 +19,7 @@ # $Id: Makefile.am,v 1.9 2010-05-09 05:37:14 gnb Exp $ # -SUBDIRS= src ui php doc test scripts +SUBDIRS= src ui php doc test scripts lib EXTRA_DIST= .gitignore .gdbinit autogen.sh
  83. Download patch build/vagrant/ubuntu1604-32.yaml

    --- 0.9-21/build/vagrant/ubuntu1604-32.yaml 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/build/vagrant/ubuntu1604-32.yaml 2019-03-11 10:55:18.000000000 +0000 @@ -0,0 +1,2 @@ +box: "ubuntu/xenial32" +script_file: "ubuntu.sh"
  84. Download patch build/vagrant/fedora29.yaml

    --- 0.9-21/build/vagrant/fedora29.yaml 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/build/vagrant/fedora29.yaml 2019-03-10 09:53:56.000000000 +0000 @@ -0,0 +1,2 @@ +box: "generic/fedora29" +script_file: "fedora.sh"
  85. Download patch src/argparse.H
  86. Download patch php/basic/Makefile.in
  87. Download patch doc/Makefile.in
  88. Download patch config.h.in

    --- 0.9-21/config.h.in 2013-10-20 19:46:01.000000000 +0000 +++ 0.9+20190314-0ubuntu1/config.h.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,135 +0,0 @@ -/* config.h.in. Generated from configure.in by autoheader. */ - -/* Whether the raw size field in struct bfd_section is called rawsize */ -#undef HAVE_BFD_ASECTION_RAWSIZE - -/* Define to 1 if you have the <dlfcn.h> header file. */ -#undef HAVE_DLFCN_H - -/* Define to 1 if you have the <elf.h> header file. */ -#undef HAVE_ELF_H - -/* Whether to use the GnomeProgram feature to initialise GNOME. */ -#undef HAVE_GNOME_PROGRAM_INIT - -/* * The function gtk_text_buffer_select_range may or may * not be present in - the gtk2 libraries...we have to work * around it if not. */ -#undef HAVE_GTK_TEXT_BUFFER_SELECT_RANGE - -/* * An iterator for GHashTables may or may not be present * in the glib - library...we have to work around it if not. */ -#undef HAVE_G_HASH_TABLE_ITER - -/* Define to 1 if you have the <inttypes.h> header file. */ -#undef HAVE_INTTYPES_H - -/* the GNU bfd library is available */ -#undef HAVE_LIBBFD - -/* Whether the GConf library for storing application preferences is available. - */ -#undef HAVE_LIBGCONF - -/* Define to 1 if the popt library is present */ -#undef HAVE_LIBPOPT - -/* Define to 1 if you have the <malloc.h> header file. */ -#undef HAVE_MALLOC_H - -/* Define to 1 if you have the <memory.h> header file. */ -#undef HAVE_MEMORY_H - -/* Define to 1 if you have the `putenv' function. */ -#undef HAVE_PUTENV - -/* Define to 1 if you have the `regcomp' function. */ -#undef HAVE_REGCOMP - -/* Define to 1 if you have the <signal.h> header file. */ -#undef HAVE_SIGNAL_H - -/* Define to 1 if you have the `sincos' function. */ -#undef HAVE_SINCOS - -/* Define to 1 if you have the <stdint.h> header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the <stdlib.h> header file. */ -#undef HAVE_STDLIB_H - -/* Define to 1 if you have the `strchr' function. */ -#undef HAVE_STRCHR - -/* Define to 1 if you have the <strings.h> header file. */ -#undef HAVE_STRINGS_H - -/* Define to 1 if you have the <string.h> header file. */ -#undef HAVE_STRING_H - -/* Define to 1 if you have the <sys/filio.h> header file. */ -#undef HAVE_SYS_FILIO_H - -/* Define to 1 if you have the <sys/ioctl.h> header file. */ -#undef HAVE_SYS_IOCTL_H - -/* Define to 1 if you have the <sys/stat.h> header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the <sys/time.h> header file. */ -#undef HAVE_SYS_TIME_H - -/* Define to 1 if you have the <sys/types.h> header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ -#undef HAVE_SYS_WAIT_H - -/* Define to 1 if you have the <unistd.h> header file. */ -#undef HAVE_UNISTD_H - -/* Whether the va_copy builtin works */ -#undef HAVE_VA_COPY - -/* Define to 1 if you have the `wait3' system call. Deprecated, you should no - longer depend upon `wait3'. */ -#undef HAVE_WAIT3 - -/* Define to the sub-directory in which libtool stores uninstalled libraries. - */ -#undef LT_OBJDIR - -/* Define to 1 if your C compiler doesn't accept -c and -o together. */ -#undef NO_MINUS_C_MINUS_O - -/* Name of package */ -#undef PACKAGE - -/* Define to the address where bug reports for this package should be sent. */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the home page for this package. */ -#undef PACKAGE_URL - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* Define as the return type of signal handlers (`int' or `void'). */ -#undef RETSIGTYPE - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Version number of package */ -#undef VERSION - -/* Define to `int' if <sys/types.h> does not define. */ -#undef pid_t
  89. Download patch php/.gitignore

    --- 0.9-21/php/.gitignore 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/php/.gitignore 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,3 @@ +Makefile +Makefile.in +ggcov.conf
  90. Download patch debian/patches/desktop_apps.patch

    --- 0.9-21/debian/patches/desktop_apps.patch 2018-05-15 10:44:37.000000000 +0000 +++ 0.9+20190314-0ubuntu1/debian/patches/desktop_apps.patch 2019-03-10 10:23:49.000000000 +0000 @@ -3,15 +3,13 @@ Description: Change desktopdir Last-Updated: 2014-04-08 Forwarded: no -Index: ggcov-0.9/ui/Makefile.am -=================================================================== ---- ggcov-0.9.orig/ui/Makefile.am 2014-04-08 11:54:01.000000000 +0100 -+++ ggcov-0.9/ui/Makefile.am 2014-04-08 13:22:48.912695178 +0100 -@@ -24,7 +24,7 @@ +--- a/ui/Makefile.am ++++ b/ui/Makefile.am +@@ -24,7 +24,7 @@ EXTRA_DIST= ggcov.glade ggcov-glade2.gla ggcov.desktop ggcov.schemas if GUI --desktopdir= $(datadir)/gnome/apps/Development +-desktopdir= $(datadir)/applications +desktopdir= $(datadir)/applications/Development pixmapsdir= $(datadir)/pixmaps pixmaps_DATA= ggcov64.png
  91. Download patch debian/patches/c++.patch

    --- 0.9-21/debian/patches/c++.patch 2018-05-15 10:44:37.000000000 +0000 +++ 0.9+20190314-0ubuntu1/debian/patches/c++.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -Author: Alastair McKinstry <mckinstry@debian.org> -Description: Support c++ extension. -Origin-Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684401 -Forwarded: no -Last-Updated: 2013-12-08 - -Index: ggcov-0.9/src/cov.C -=================================================================== ---- ggcov-0.9.orig/src/cov.C 2014-03-24 18:08:05.427356929 +0000 -+++ ggcov-0.9/src/cov.C 2014-03-24 18:08:05.423356822 +0000 -@@ -60,7 +60,7 @@ - const char *ext; - static const char * const recognised_exts[] = - { -- ".c", ".cc", ".cxx", ".cpp", ".C", -+ ".c", ".cc", ".cxx", ".cpp", ".C", ".c++", - ".y", ".l", - 0 - };
  92. Download patch src/colors.h

    --- 0.9-21/src/colors.h 2013-04-10 22:50:20.000000000 +0000 +++ 0.9+20190314-0ubuntu1/src/colors.h 2019-03-10 09:52:53.000000000 +0000 @@ -1,17 +1,17 @@ /* * ggcov - A GTK frontend for exploring gcov coverage data * Copyright (c) 2005 Greg Banks <gnb@users.sourceforge.net> - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA @@ -28,15 +28,15 @@ * the default colours for ggcov. */ -#define COLOR_FG_COVERED 0x00, 0xc0, 0x00 -#define COLOR_BG_COVERED 0x80, 0xd0, 0x80 -#define COLOR_FG_PARTCOVERED 0xa0, 0xa0, 0x00 -#define COLOR_BG_PARTCOVERED 0xd0, 0xd0, 0x80 -#define COLOR_FG_UNCOVERED 0xc0, 0x00, 0x00 -#define COLOR_BG_UNCOVERED 0xd0, 0x80, 0x80 -#define COLOR_FG_UNINSTRUMENTED 0x00, 0x00, 0x00 -#define COLOR_BG_UNINSTRUMENTED 0xa0, 0xa0, 0xa0 -#define COLOR_FG_SUPPRESSED 0x00, 0x00, 0x80 -#define COLOR_BG_SUPPRESSED 0x80, 0x80, 0xd0 +#define COLOR_FG_COVERED 0x00, 0xc0, 0x00 +#define COLOR_BG_COVERED 0x80, 0xd0, 0x80 +#define COLOR_FG_PARTCOVERED 0xa0, 0xa0, 0x00 +#define COLOR_BG_PARTCOVERED 0xd0, 0xd0, 0x80 +#define COLOR_FG_UNCOVERED 0xc0, 0x00, 0x00 +#define COLOR_BG_UNCOVERED 0xd0, 0x80, 0x80 +#define COLOR_FG_UNINSTRUMENTED 0x00, 0x00, 0x00 +#define COLOR_BG_UNINSTRUMENTED 0xa0, 0xa0, 0xa0 +#define COLOR_FG_SUPPRESSED 0x00, 0x00, 0x80 +#define COLOR_BG_SUPPRESSED 0x80, 0x80, 0xd0 #endif /* _ggcov_colors_H_ */
  93. Download patch debian/patches/varargs.patch

    --- 0.9-21/debian/patches/varargs.patch 2018-05-15 10:44:37.000000000 +0000 +++ 0.9+20190314-0ubuntu1/debian/patches/varargs.patch 2019-03-10 10:31:31.000000000 +0000 @@ -3,11 +3,9 @@ Decription: Fix for g++ 6.2 strictness o Last-Updated: 2016-11-21 Bug-Origin: https://bugs.debian.org/844884 -Index: ggcov-0.9/src/cov.C -=================================================================== ---- ggcov-0.9.orig/src/cov.C -+++ ggcov-0.9/src/cov.C -@@ -129,7 +129,7 @@ cov_init(void) +--- a/src/cov.C ++++ b/src/cov.C +@@ -142,7 +142,7 @@ cov_init(void) { #ifdef HAVE_LIBBFD bfd_init(); @@ -15,4 +13,4 @@ Index: ggcov-0.9/src/cov.C + bfd_set_error_handler( (bfd_error_handler_type) cov_bfd_error_handler); #endif /* HAVE_LIBBFD */ - cov_callnode_t::init(); + new cov_callgraph_t(); // becomes singleton instance
  94. Download patch RELEASE.txt

    --- 0.9-21/RELEASE.txt 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/RELEASE.txt 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,45 @@ + +Description of release procedure for ggcov +------------------------------------------ + +1. Be in the ggcov top_srcdir + cd ~/software/ggcov + +2. Ensure all changes are checked in + +3. Choose a release number, e.g. 0.5 and hence tag GGCOV_0_5 + +4. Bump revision number in configure.in + vi configure.in + # edit the AM_INIT_AUTOMAKE line + git commit configure.in + +5. Build a list of change from the previous release (e.g. 0.4) + ./git2changelog 0.4 + +6. Manually edit the ChangeLog file to remove, re-express and + re-order the change log items in the first section (just + created by the git2changelog script). Make sure you name the + correct release. Maintain the formatting. + +7. Checkin ChangeLog + git commit ChangeLog + +8. Tag the source tree + git tag GGCOV_0_5 + +9. Build new source tarball + make dist + +10. Test the tarball + rm -rf x; mkdir x; cd x + tar -xf ../ggcov-0.5.tar.gz + cd ggcov-0.5 + sh autogen.sh + make + make check + +11. Upload a new release on ggcov.sf.net + +12. Notify freshmeat.net +
  95. Download patch src/callswin.C
  96. Download patch php/Makefile.in
  97. Download patch lib/templates/foot.html

    --- 0.9-21/lib/templates/foot.html 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/lib/templates/foot.html 2019-03-10 09:52:53.000000000 +0000 @@ -0,0 +1,7 @@ +</div> +<div id="footer"> +<p>Generated by ggcov-html. Copyright &copy; 2001-2015 Greg Banks.</p> +</div> +</div> +</body> +</html>
  98. Download patch Makefile.in
  99. Download patch depcomp
  100. Download patch build/vagrant/fedora.sh

    --- 0.9-21/build/vagrant/fedora.sh 1970-01-01 00:00:00.000000000 +0000 +++ 0.9+20190314-0ubuntu1/build/vagrant/fedora.sh 2019-03-10 09:53:56.000000000 +0000 @@ -0,0 +1,10 @@ +# Setup C development environment and prereqs +domainname localdomain + +yum -y groupinstall 'Development Tools' +yum -y install \ + git valgrind-devel binutils-devel libxml2-devel \ + doxygen python-pygments python-markdown \ + perl-XML-LibXML strace python-pip \ + glib2-devel gd-devel popt-devel rubygem-mustache +pip install breathe Sphinx
  101. ...
  1. ggcov