I am using the -finstrument-functions gcc compiler (Atmel Studio) option and I want to do two things
- issue a compile-time warning that the option is on
- optionally compile in the entry/exit probes
but that didn't work. I assume there is a general correspondence between command line options like -finstrument-functions and testable symbols but I have not been able to find documentation on it.
BTW: This is to try to find an obscure bug in my (ATMega1284p) code. The symptoms change when I add code to try to trap it. It 'smells' like a return onto a corrupt stack (execution jumps to invalid locations) but my efforts so far have been in vain.
Thanks in advance for your help.