470,571 Members | 2,360 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,571 developers. It's quick & easy.

Code execution Tracing

Hi All,
I don't know whether this is the right forum to post this
question.
If not, Please forgive me.

I want to write my own tool which can trace the code execution (print
the sequence of function execution into a file).
But I cannot change the source code. (i.e.) I cannot write some Trace
macros
into source code.

I don't have idea on how to do that?
How does some process can trance the execution of other process?
I know some tools like Rational -Purecoverage is doing that.
How it does?
Any help welcome.

Thanks
Sabiyur

Aug 16 '06 #1
1 1915
"Sabiyur" <Sa***********@gmail.comwrote in message
news:11*********************@h48g2000cwc.googlegro ups.com...
Hi All,
I don't know whether this is the right forum to post this
question.
If not, Please forgive me.

I want to write my own tool which can trace the code execution (print
the sequence of function execution into a file).
But I cannot change the source code. (i.e.) I cannot write some Trace
macros
into source code.

I don't have idea on how to do that?
How does some process can trance the execution of other process?
I know some tools like Rational -Purecoverage is doing that.
How it does?
Any help welcome.

Thanks
Sabiyur
Sounds like you want to write your own debugger, but only write the
functions into a file. This is compiler specific but when you compile in
debug code there are "hooks" that are generated that the debugger can catch
and flow accordingly.

You'll need to look at your specific compiler I believe. If you are using
an open source compiler it should be a lot easier.
Aug 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by mid | last post: by
6 posts views Thread by serge calderara | last post: by
2 posts views Thread by Ed Leafe | last post: by
reply views Thread by cnys | last post: by
5 posts views Thread by Nikhil | last post: by
2 posts views Thread by Justin Powell | last post: by
1 post views Thread by livre | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.