How to use xtrace?

  • Follow


I need to trace program flow (trace user function calls).
I have found a script xtrace from glibc which promises to do that. But if I
run it doesn't print anything except programs output.
How should I use it. It is neccessary to recompile the program with a
special option?

Or does there exist any other similar tool to xtrace?

Jirka
1
Reply BlueOwl 4/28/2005 11:55:10 AM

BlueOwl wrote:
> I need to trace program flow (trace user function calls).
> I have found a script xtrace from glibc which promises to do that. But if I

As you mention glibc, I assume that your compiler is gcc.

Have a look at the -finstrument-functions option for gcc.

-- 
mail1dotstofanetdotdk
0
Reply Bjorn 4/28/2005 4:49:11 PM


1 Replies
785 Views

(page loaded in 0.03 seconds)

Similiar Articles:





7/24/2012 4:58:55 AM


Reply: