Can Dtrace print the line numbers in a source file assuming the code was compiled with -g? Cheers, William -- @,,@ William James (\--/) williamjamesgnusolaris at gmail.com (.>__<.) GNU/Solaris hacker
> Can Dtrace print the line numbers in a source file assuming the code > was compiled with -g?William, There is no current DTrace feature to do so, although with some pain one could DTrace addresses and then convert back to line numbers in the source- level tool of your choice. (e.g. "whereis -a" in dbx). A useful community project would be CTF extensions or pluggable libraries for Sun and GNU tools to provide access to line number data from the various compilers. -Mike -- Mike Shapiro, Solaris Kernel Development. blogs.sun.com/mws/
On 3/11/07, Michael Shapiro <mws at zion.eng.sun.com> wrote:> A useful community > project would be CTF extensions or pluggable libraries for Sun and GNU > tools to provide access to line number data from the various compilers.How about a Google Summer of Code project?? I can help to write a proposal, but I don''t understand the dtrace code well enough - if the dtrace developers can help as the project goes along, we may end up with something useful by summer end!! http://mail.opensolaris.org/pipermail/summerofcode/2007-March/date.html Rayson> > -Mike > > -- > Mike Shapiro, Solaris Kernel Development. blogs.sun.com/mws/ > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org >
Hi, Rayson Ho wrote:> On 3/11/07, Michael Shapiro <mws at zion.eng.sun.com> wrote: >> A useful community >> project would be CTF extensions or pluggable libraries for Sun and GNU >> tools to provide access to line number data from the various compilers. > > How about a Google Summer of Code project?? > > I can help to write a proposal, but I don''t understand the dtrace code > well enough - if the dtrace developers can help as the project goes > along, we may end up with something useful by summer end!! > > http://mail.opensolaris.org/pipermail/summerofcode/2007-March/date.htmlIf someone is interested in scoping this out, *now* would be a really good time to do this. The deadline for submissions is today (12th March). http://www.opensolaris.org/os/project/summerofcode/ Glynn