diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-11-06 20:57:55 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-11-06 20:57:55 -0500 |
commit | 36b155fa54b96e8f71b8c0997a4de76738de0338 (patch) | |
tree | ec1e45111ccb8eeba6e65152d280ff8fd444db6f /tapsets.cxx | |
parent | d87623a1515eada2bd7809b370bf8e7a3294c985 (diff) | |
download | systemtap-steved-36b155fa54b96e8f71b8c0997a4de76738de0338.tar.gz systemtap-steved-36b155fa54b96e8f71b8c0997a4de76738de0338.tar.xz systemtap-steved-36b155fa54b96e8f71b8c0997a4de76738de0338.zip |
expand comment on has_return=0 treatment of -L foo.return probes
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index 59598cf3..d20c0ab1 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -2901,9 +2901,13 @@ dwarf_derived_probe::saveargs(dwarf_query& q, Dwarf_Die* scope_die, dwarf_var_ex dwarf_type_name(&type_die, type_name)) args.insert("$return:"+type_name); - /* Pretend that we aren't in a .return for a moment, just so we can check - * whether variables are accessible. We don't want to all the entry-saving - * code generated during listing mode. */ + /* Pretend that we aren't in a .return for a moment, just so we can + * check whether variables are accessible. We don't want to all the + * entry-saving code generated during listing mode. This works + * because the set of $context variables available in a .return + * probe (apart from $return) is the same set as available for the + * corresponding .call probe, since we collect those variables at + * .call time. */ bool saved_has_return = has_return; q.has_return = has_return = false; |