diff options
author | Stan Cox <scox@redhat.com> | 2008-06-25 21:09:24 -0400 |
---|---|---|
committer | Stan Cox <scox@redhat.com> | 2008-06-25 21:09:24 -0400 |
commit | 2ffc79584b10e3e8a9d88f9f86b4fde074a22076 (patch) | |
tree | 47e128e2484e9b28388535c0973cbfb8c6fd6e8d /tapsets.cxx | |
parent | 7ff47c2c671a4e8a6c80bc0af0b3c04f4e8034b5 (diff) | |
download | systemtap-steved-2ffc79584b10e3e8a9d88f9f86b4fde074a22076.tar.gz systemtap-steved-2ffc79584b10e3e8a9d88f9f86b4fde074a22076.tar.xz systemtap-steved-2ffc79584b10e3e8a9d88f9f86b4fde074a22076.zip |
Only probe lines once for the :* wildcard line pattern.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index a2e75420..38b075d0 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -1204,6 +1204,8 @@ struct dwflpp for (int l = lineno; ; l = l + 1) { + set<int> lines_probed; + pair<set<int>::iterator,bool> line_probed; dwarf_assert ("dwarf_getsrc_file", dwarf_getsrc_file (module_dwarf, srcfile, l, 0, @@ -1213,7 +1215,8 @@ struct dwflpp { Dwarf_Addr line_addr; dwarf_lineno (srcsp [0], &lineno); - if (lineno != l) + line_probed = lines_probed.insert(lineno); + if (lineno != l || line_probed.second == false) continue; dwarf_lineaddr (srcsp [0], &line_addr); if (dwarf_haspc (function, line_addr) != 1) |