|
From: Bryan M. <om...@br...> - 2006-06-06 19:49:17
|
Dear Valgrinders, Is there a simple (read cheap) way to detect when the program has returned from main()? On Suse 10.1 (x86_64) I am having a few issues crop up with omega that I can easily fix, given a boolean or some such to show when function main is finished with. I suppose the most useful indication of all would be a bool that is set only whilst the program is somewhere within main or a function called from main. Failing that, a suggestion of where to add in an appropriate hook would also be helpful. I looked in m_stacktrace.c for clues but string comparison seems a little expensive for what would be quite a common check. Maybe integrating the indication with the stack retrieval in some fashion would do it (first stack request outside of main() sets the flag)? Thanks in advance, Bryan "Brain Murders" Meredith |