This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/11772] listing_mode_vars are empty with debuginfoless SDT
- From: "scox at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 26 Jul 2010 21:50:31 -0000
- Subject: [Bug translator/11772] listing_mode_vars are empty with debuginfoless SDT
- References: <20100630164347.11772.jistone@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From scox at redhat dot com 2010-07-26 21:50 -------
How about this?
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -396,2 +396,3 @@ struct dwarf_derived_probe: public derived_probe
void print_dupe_stamp(ostream& o);
+ void savesdtargs(int nargs);
@@ -3914,2 +3915,10 @@ dwarf_derived_probe::saveargs(dwarf_query& q, Dwarf_Die*
scope_die, dwarf_var_ex
void
+dwarf_derived_probe::savesdtargs(int nargs)
+{
+ for (int i = 1; i <= nargs; i++)
+ args.push_back("$arg" + lex_cast (i) + ":long");
+}
+
+
+void
dwarf_derived_probe::getargs(std::list<std::string> &arg_set) const
@@ -5111,2 +5120,3 @@ sdt_query::handle_query_module()
q.statement_num_val, reloc_addr, q, 0);
+ p->savesdtargs (arg_count);
results.push_back (p);
stap -L 'process("../../install/bin/stap").mark("*")'
process("../../install/bin/stap").mark("cache__add__module") $arg1:long $arg2:long
process("../../install/bin/stap").mark("cache__add__source") $arg1:long $arg2:long
process("../../install/bin/stap").mark("cache__clean") $arg1:long
...
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|systemtap at sources dot |scox at redhat dot com
|redhat dot com |
Status|NEW |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=11772
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.