summaryrefslogtreecommitdiffstats
path: root/coveragedb.h
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-07-10 11:10:51 -0400
committerDave Brolley <brolley@redhat.com>2009-07-10 11:10:51 -0400
commit1e9ab8199dff90c1b6e7290f0f7b4eb424a9ff9f (patch)
treea0c10b78ad3e7142a59ffd6f6e75b75abf90d88e /coveragedb.h
parent7d54db1a2c0b3831b6fbc8282f1155426c4be540 (diff)
parentc728b7da8be430367aa33f9fbacda93d4add9ea2 (diff)
downloadsystemtap-steved-1e9ab8199dff90c1b6e7290f0f7b4eb424a9ff9f.tar.gz
systemtap-steved-1e9ab8199dff90c1b6e7290f0f7b4eb424a9ff9f.tar.xz
systemtap-steved-1e9ab8199dff90c1b6e7290f0f7b4eb424a9ff9f.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'coveragedb.h')
-rw-r--r--coveragedb.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/coveragedb.h b/coveragedb.h
index 3675e3b4..f0f071c4 100644
--- a/coveragedb.h
+++ b/coveragedb.h
@@ -10,6 +10,7 @@
#define COVERAGEDB_H
#include "session.h"
+#include "staptree.h"
#include <string>
@@ -62,12 +63,12 @@ public:
int compiled;
int executed;
- coverage_element() { line = 0; col = 0;
- compiled = 0; executed = 0; }
+ coverage_element():
+ line(0), col(0), compiled(0), executed(0) {}
- coverage_element(source_loc &place) {
- file = place.file; line = place.line; col = place.column;
- compiled = 0; executed = 0; }
+ coverage_element(source_loc &place):
+ file(place.file->name), line(place.line), col(place.column),
+ compiled(0), executed(0) {}
};