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/15587] Line numbers are missing/incorrect for inline statements


http://sourceware.org/bugzilla/show_bug.cgi?id=15587

Josh Stone <jistone at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|systemtap at sourceware dot org    |jistone at redhat dot com

--- Comment #1 from Josh Stone <jistone at redhat dot com> ---
This patch was confirmed by Bryn M. Reeves to improve the situation.  I just
need to do more manual testing and hopefully find a stable testcase for it.


diff --git a/tapsets.cxx b/tapsets.cxx
index 6bede4c..6a785e8 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -1653,7 +1653,8 @@ query_srcfile_line (const dwarf_line_t& line, void * arg)
               Dwarf_Die scope;
               q->dw.inner_die_containing_pc(i->die, addr, scope);
               query_statement (i->name, i->decl_file,
-                               q->line[0], &scope, addr, q);
+                               lineno, // NB: not q->line !
+                               &scope, addr, q);
             }
          else
            query_inline_instance_info (*i, q);

-- 
You are receiving this mail because:
You are the assignee for the bug.


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