From f94baaeed17aba11aa46e9b46f0564217fc9978c Mon Sep 17 00:00:00 2001 From: Charley Wang Date: Tue, 10 Nov 2009 14:04:57 -0500 Subject: PR10877: Fix coveragedb.cxx to account for new components/token structure --- coveragedb.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/coveragedb.cxx b/coveragedb.cxx index 452041fc..ae88f24d 100644 --- a/coveragedb.cxx +++ b/coveragedb.cxx @@ -33,7 +33,7 @@ void print_coverage_info(systemtap_session &s) for (unsigned j=0; jlocations.size(); ++k) clog << "probe: " - << used_probe_list[j]->locations[k]->tok->location << endl; + << used_probe_list[j]->locations[k]->components.front()->tok->location << endl; } clog << "----" << endl; @@ -56,7 +56,7 @@ void print_coverage_info(systemtap_session &s) for (unsigned j=0; jlocations.size(); ++k) clog << "probe: " - << unused_probe_list[j]->locations[k]->tok->location << endl; + << unused_probe_list[j]->locations[k]->components.front()->tok->location << endl; } } @@ -202,7 +202,7 @@ sql_update_used_probes(sqlite3 *db, systemtap_session &s) s.probes[i]->collect_derivation_chain(used_probe_list); for (unsigned j=0; jlocations.size(); ++k){ - struct source_loc place = used_probe_list[j]->locations[k]->tok->location; + struct source_loc place = used_probe_list[j]->locations[k]->components.front()->tok->location; coverage_element x(place); x.type = db_type_probe; @@ -246,7 +246,7 @@ sql_update_unused_probes(sqlite3 *db, systemtap_session &s) for (unsigned j=0; jlocations.size(); ++k) { - struct source_loc place = unused_probe_list[j]->locations[k]->tok->location; + struct source_loc place = unused_probe_list[j]->locations[k]->components.front()->tok->location; coverage_element x(place); x.type = db_type_probe; -- cgit