From 70dc04429ec63764b6d1dd831c753329d2c0574a Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 18 Jan 2010 14:36:47 -0800 Subject: 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.) --- tapsets.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tapsets.cxx') diff --git a/tapsets.cxx b/tapsets.cxx index d5c6b25e..22aae041 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) -- cgit