summaryrefslogtreecommitdiffstats
path: root/tapset-utrace.cxx
diff options
context:
space:
mode:
authorCharley Wang <chwang@redhat.com>2009-11-10 12:22:18 -0500
committerCharley Wang <chwang@redhat.com>2009-11-10 12:22:18 -0500
commitf1a0157a5bacc6c7f739a621ee86fec2be9b0080 (patch)
tree5be55af0801b2553afdf905524f7924219aec88d /tapset-utrace.cxx
parent7885012ba0a7c1d7c974dd9528afa90aeed916a6 (diff)
downloadsystemtap-steved-f1a0157a5bacc6c7f739a621ee86fec2be9b0080.tar.gz
systemtap-steved-f1a0157a5bacc6c7f739a621ee86fec2be9b0080.tar.xz
systemtap-steved-f1a0157a5bacc6c7f739a621ee86fec2be9b0080.zip
PR10877: Give token* to each component instead of each probe_point
Diffstat (limited to 'tapset-utrace.cxx')
-rw-r--r--tapset-utrace.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/tapset-utrace.cxx b/tapset-utrace.cxx
index 4bd4ecc1..795d88b7 100644
--- a/tapset-utrace.cxx
+++ b/tapset-utrace.cxx
@@ -379,7 +379,6 @@ utrace_var_expanding_visitor::visit_target_symbol_cached (target_symbol* e)
else
pp->components.push_back(base_loc->components[c]);
}
- pp->tok = e->tok;
pp->optional = base_loc->optional;
add_probe->locations.push_back(pp);
@@ -644,7 +643,7 @@ struct utrace_builder: public derived_probe_builder
// We can't probe 'init' (pid 1). XXX: where does this limitation come from?
if (pid < 2)
throw semantic_error ("process pid must be greater than 1",
- location->tok);
+ location->components.front()->tok);
// XXX: could we use /proc/$pid/exe in unwindsym_modules and elsewhere?
}