diff options
author | Josh Stone <jistone@redhat.com> | 2010-04-07 16:41:41 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2010-04-07 16:46:57 -0700 |
commit | 1af1e62d9f67237277dd771a0cb78fa6b069742d (patch) | |
tree | 7a168a6caf1649dfe2ea470d43972c65619a06ad /tapset-procfs.cxx | |
parent | ea1e477a78969d44aeea51cfc3cbd2e8ed96cfe4 (diff) | |
download | systemtap-steved-1af1e62d9f67237277dd771a0cb78fa6b069742d.tar.gz systemtap-steved-1af1e62d9f67237277dd771a0cb78fa6b069742d.tar.xz systemtap-steved-1af1e62d9f67237277dd771a0cb78fa6b069742d.zip |
Clean up and clarify semantic_error chaining
I consolidated the copy-construction that every target_symbol::chain
caller was doing. I also removed the comments that target_symbol errors
might be chained due to function wildcards, because it's not true --
each derived instance gets a deep_copy of the probe body. However,
@cast can still chain since it may try multiple modules to resolve the
casting dereference.
Diffstat (limited to 'tapset-procfs.cxx')
-rw-r--r-- | tapset-procfs.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tapset-procfs.cxx b/tapset-procfs.cxx index c888ff74..34b2b005 100644 --- a/tapset-procfs.cxx +++ b/tapset-procfs.cxx @@ -520,7 +520,7 @@ procfs_var_expanding_visitor::visit_target_symbol (target_symbol* e) } catch (const semantic_error &er) { - e->chain (new semantic_error(er)); + e->chain (er); provide (e); } } |