diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-01-25 14:04:39 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-01-25 14:04:39 -0500 |
commit | 808462c906ccbab27dd05c16bd502a4dadcd2cfd (patch) | |
tree | 033397a7d7c8399aaf3cb0d339dd0480b8026725 /tapsets.cxx | |
parent | 1abba5f237b827c63bbf5e28bda623d4bd8400ed (diff) | |
download | systemtap-steved-808462c906ccbab27dd05c16bd502a4dadcd2cfd.tar.gz systemtap-steved-808462c906ccbab27dd05c16bd502a4dadcd2cfd.tar.xz systemtap-steved-808462c906ccbab27dd05c16bd502a4dadcd2cfd.zip |
PR 5672: fix generated dwarf probe point names from wildcards
2008-01-25 Frank Ch. Eigler <fche@elastic.org>
PR 5672.
* staptree.cxx (probe_point copy ctor): New function.
* staptree.h: Declare it.
* tapsets.cxx (dwarf_derived_probe ctor): Call it to shallow-copy
incoming base probe location before recomputing/overwriting it.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index 06aa73aa..5b69373b 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -3635,7 +3635,7 @@ dwarf_derived_probe::dwarf_derived_probe(const string& funcname, Dwarf_Addr addr, dwarf_query& q, Dwarf_Die* scope_die /* may be null */) - : derived_probe (q.base_probe, q.base_loc /* NB: base_loc.components will be overwritten */ ), + : derived_probe (q.base_probe, new probe_point(*q.base_loc) /* .components soon rewritten */ ), module (module), section (section), addr (addr), has_return (q.has_return), has_maxactive (q.has_maxactive), |