From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D6C613870854; Wed, 3 Jun 2020 14:42:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D6C613870854 From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/25193] Incorrect reporting of line information for stap -v -L 'process("/usr/bin/ld.gold").statement("*@*:*")' Date: Wed, 03 Jun 2020 14:42:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wcohen at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2020 14:42:18 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25193 --- Comment #5 from William Cohen --- GDB has some ability to provide backtraces that include inlined functions.= =20 Should see how gdb is able to get that information about source line and function name. Used following to find an inlined function to set a breakpoint on:=20 $ stap -v -L 'process("./multiple_views").function("*").inline' $ gdb multiple_views=20 ... (gdb) break _M_set_length Breakpoint 1 at 0x4010dd: file /usr/include/c++/10/bits/basic_string.h, line 214. (gdb) run Starting program: /home/wcohen/multiple_views=20 Missing separate debuginfo for /lib64/libstdc++.so.6 Try: dnf --enablerepo=3D'*debug*' install /usr/lib/debug/.build-id/7a/fd1ced0ad3b1fdfe1b121ae292881439af5e57.debug Breakpoint 1, std::__cxx11::basic_string, std::allocator >::_M_set_length (__n=3D12,=20 this=3D0x7fffffffd7d0) at /usr/include/c++/10/bits/basic_string.h:217 217 traits_type::assign(_M_data()[__n], _CharT()); (gdb) where #0 std::__cxx11::basic_string, std::allocator >::_M_set_length (__n=3D12,=20 this=3D0x7fffffffd7d0) at /usr/include/c++/10/bits/basic_string.h:217 #1 std::__cxx11::basic_string, std::allocator >::_M_construct ( __end=3D0x40201c "", __beg=3D0x402010 "hello world\n", this=3D0x7ffffff= fd7d0) at /usr/include/c++/10/bits/basic_string.tcc:232 #2 std::__cxx11::basic_string, std::allocator >::_M_construct_aux ( __end=3D0x40201c "", __beg=3D0x402010 "hello world\n", this=3D0x7ffffff= fd7d0) at /usr/include/c++/10/bits/basic_string.h:247 #3 std::__cxx11::basic_string, std::allocator >::_M_construct ( __end=3D0x40201c "", __beg=3D0x402010 "hello world\n", this=3D0x7ffffff= fd7d0) at /usr/include/c++/10/bits/basic_string.h:266 #4 std::__cxx11::basic_string, std::allocator >::basic_string (__a=3D...,=20 __s=3D0x402010 "hello world\n", this=3D0x7fffffffd7d0) at /usr/include/c++/10/bits/basic_string.h:527 #5 main (argc=3D, argv=3D) at multiple_views= .cc:8 (gdb) p/x $pc $1 =3D 0x4010dd --=20 You are receiving this mail because: You are the assignee for the bug.=