From a10fa7f53c4470d81daa46d44546124f7548290a Mon Sep 17 00:00:00 2001 From: dsmith Date: Tue, 19 Feb 2008 14:37:17 +0000 Subject: 2008-02-19 David Smith PR 5672. * tapsets.cxx (mark_derived_probe): Call probe_point copy ctor to shallow-copy incoming base probe location before recomputing/overwriting it. --- ChangeLog | 7 +++++++ tapsets.cxx | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ab485c46..2cb53045 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-02-19 David Smith + + PR 5672. + * tapsets.cxx (mark_derived_probe): Call probe_point copy ctor to + shallow-copy incoming base probe location before + recomputing/overwriting it. + 2008-02-18 Frank Ch. Eigler * NEWS, stapprobes.5.in: Document basic (non-symbolic prototype) diff --git a/tapsets.cxx b/tapsets.cxx index 4ff53e6f..9b31fca1 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -5289,7 +5289,8 @@ mark_derived_probe::mark_derived_probe (systemtap_session &s, const string& p_n, const string& p_s, probe* base, probe_point* loc): - derived_probe (base, loc), sess (s), probe_name (p_n), probe_sig (p_s), + derived_probe (base, new probe_point(*loc) /* .components soon rewritten */), + sess (s), probe_name (p_n), probe_sig (p_s), target_symbol_seen (false) { // create synthetic probe point name; preserve condition -- cgit