This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/11772] listing_mode_vars are empty with debuginfoless SDT


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]