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]

Re: Line numbers reported by pp() do not respond to the reality


sudo stap -p2 ./testpp.stp
...
# probes
process("/home/kdesystemtap/kdeinstall/lib/kde4/plugins/styles/oxygen.so").statement("drawScrollBarSliderControl@/home/kdesystemtap/kde/src/trunk/KDE/kdebase/workspace/kstyles/oxygen/oxygenstyle.cpp:4995")
/* pc=.dynamic+0x92035 */ /* <-
process("/home/kdesystemtap/kdeinstall/lib/kde4/plugins/styles/oxygen.so").statement("drawScrollBarSliderControl@*:*")
*/
...


addr2line -e /home/kdesystemtap/kdeinstall/lib/kde4/plugins/styles/oxygen.so
0x92035
/home/kdesystemtap/kde/src/trunk/KDE/kdebase/workspace/kstyles/oxygen/oxygenstyle.cpp:4995


I also checked with:
readelf --debug-dump=decodedline
/home/kdesystemtap/kdeinstall/lib/kde4/plugins/styles/oxygen.so
When I look up the address in this table, I get the same line number: 4995


I haven't checked with GDB yet but since this is the information in
the debug sections, I don't think GDB will report the correct line
number either.


I compiled everything as usual, I only added the -g compiler option.


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