Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNX function call depth: (1 Item)
   
QNX function call depth  
Hello.

I'm trying to get program call tree for code analys (something like):
[b]main[/b]
--->[b][color=#0000FF]func1[/color][/b]
--------->[b][color=#BF0000]func2[/color][/b]
--->[b][color=#0000FF]func3[/color][/b]

In gcc there are great funtions as backtrace,backtrace_symbols,etc.
In windows stackwalk64.
I mentioned both of them for regular systems.

I've tried to found something like them in watcom (10.6 QNX4.25), but (for now) got nothing. After reading manual for 
wcc I get next two options for compilier
-ee - add __EPI to end of each function
-ep - add __PRO to start of each function
It seems that after building app and running it, I will get necessary profile "tree", but wlink refuse to link object 
file, printing "undifined symbol __PRO,__EPI".
In manual for wlink there are no any data about __PRO,__EPI.
So is it possible to use them? Are there any other functions that can help me to get function call depth?