From: Josh Stone Date: Mon, 18 Jan 2010 22:36:47 +0000 (-0800) Subject: Fix the listing mode of process.library.mark X-Git-Tag: release-1.2~216^2~10 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=70dc04429ec63764b6d1dd831c753329d2c0574a;p=systemtap.git Fix the listing mode of process.library.mark Our hack for producing nicer listing modes was to write the mark name in component index 1. That's fine for process.mark, but writes the wrong position for process.library.mark. It now munges the last probe component of any number of indexes. (A better fix is due in PR10831, preserving the derivation chain.) --- diff --git a/tapsets.cxx b/tapsets.cxx index d5c6b25ee..22aae0417 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -3798,7 +3798,7 @@ sdt_query::handle_query_module() { // restore the locations to print a nicer probe name probe_point loc(*base_loc); - loc.components[1] = + loc.components.back() = new probe_point::component(TOK_MARK, new literal_string (probe_name)); for (; i < results.size(); ++i) for (unsigned j = 0; j < results[i]->locations.size(); ++j)